-
-
Notifications
You must be signed in to change notification settings - Fork 13
monaco-treemending
with Yarn package manager
#21
Comments
Hi @jeremiah-blezing I have released an new next version: The only way I currently see is to add Btw, there is currently an issue when you run the treemeding script twice, see open PR Is it possible for you to use npm instead of yarn as a workaround? |
Hi @kaisalmen ,
Yes, this is working. I guess this won't work in CI build.
Our Codebase is a little big, will be difficult to switch the package manager. It's fine for now. We wrote a custom wrapper with
I guess (not sure) that this is not an issue with Peer Dependency Installation but with bin file resolution of Peer Dependency that has a package alias that is being used in monaco-languageclient ( here ) . That's my guess when playing around with multiple installation scenarios.
Saw that, I think even after that, this issue will be still there. |
@jeremiah-blezing I was expecting that. 🙂
I have released a next version of monaco-languageclient that defines the dependencies as such:
In the past we defined If you add
We need to discuss way forward regarding dependency/peerDependency declaration in |
Hi @kaisalmen , "dependencies": {
"@codingame/monaco-vscode-api": "1.78.6",
"monaco-editor": "0.37.1",
"monaco-languageclient": "6.0.2-next.0"
}, With the above, I am able to install it in yarn without any issues 👌 We will soon migrate to the latest once everything is stable. Love what you guys are doing. This issue can be closed. Thank you 🙂 |
Hi @jeremiah-blezing good to know. I will announce when the new |
The new version of monaco-languageclient is now available: https://www.npmjs.com/package/monaco-languageclient/v/6.0.2 |
Description
When installing
![image](https://private-user-images.githubusercontent.com/111459189/239734673-9d40afa5-4c00-4fbc-a462-0b3f8591ba4b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5NDgxNTAsIm5iZiI6MTcyMDk0Nzg1MCwicGF0aCI6Ii8xMTE0NTkxODkvMjM5NzM0NjczLTlkNDBhZmE1LTRjMDAtNGZiYy1hNDYyLTBiM2Y4NTkxYmE0Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxNFQwOTA0MTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YWM2OGFlYWU5ZjJiZGQ5MWIyMjcwMmU4MjI3OWI3YWZmOTFlYjZkNzRhMWI0YzcxMWRiN2U2Njk0NzFlYTljJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.7UQfIf28r4pu9muHr7Za1C8d_35-WkB55KAOdA0Sl1w)
monaco-editor-wrapper@2.0.0-next.5
with yarn, apostinstall : monaco-treemending
script is run and it shows the command is not found.It seems the latest commit removed
postinstall : monaco-treemending
script in this repository, but the changes are not released yet.Peer Dependency Issue
When I traced the Peer Dependencies of
monaco-editor-wrapper@2.0.0-next.5
to themonaco-treemending
script, it went likemonaco-editor-wrapper@2.0.0-next.5
👉monaco-languageclient@6.0.1
👉@codingame/monaco-vscode-api@~1.78.6
I could see the actual
monaco-treemending
js script is present only in the@codingame/monaco-vscode-api@~1.78.6
package, not in any of the other packages.Now coming to the issue, when installing
monaco-editor-wrapper
,npm
is somehow looking into the peer dependencies and executing thebin
scripts from @codingame/monaco-vscode-api@~1.78.6 , but this is not the case foryarn
. Yarn is only looking in that package and avoiding the peer dependencies(I guess).Because of this, yarn becomes unusable with the latest monaco-languageclient packages.
To Reproduce
yarn create vite
Choose any Framework and try the below command
yarn add monaco-editor-wrapper@2.0.0-next.5
(or)
yarn add monaco-languageclient@6.0.1
Question
Do we need
postinstall : monaco-treemending
script inmonaco-languageclient
package? As it is already taken care of by@codingame/monaco-vscode-api
and only that package has the js script to run...Thanks.
The text was updated successfully, but these errors were encountered: