-
Notifications
You must be signed in to change notification settings - Fork 49
Dependency issues with v13 / questions #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@CGNonofr you can use these projects for playing around. They are independent of the workspace: |
devDependencies have no consequences for published packages, so might as well delete it. Why is it an issue?
Yes, is it an issue?
some dependencies, like monaco-graphql or monaco-vim (and probably others) are importing from
Others packages need to be able to import from the main package so we can only have 1 working alias. What would be the point though, as the whole point of this package is to be able to run libraries relying of the vscode api, like
Isn't it already the case? I'm not sure to follow Or are you referring to the type dependency expressed as optional peerDependencies you want to replace by optionalDependencies? |
It is a missing peerDependency when you install
Was there a loop already before v12/v13? npm takes ages to install the packages, pnpm and yarn are a lot faster (cache).
Ok, makes sense. Doing it differently on
Yes, I know. I was just wondering if there is another way.
Yes, only one peerDependency ( |
What do you suggest then? the issue is that the package includes the proposed api types. Maybe we should include the vscode types directly also, instead of expecting the user to install @types/vscode, what do you think?
yes. It was a dependency and not a peerDependency though
I don't know... having a dependency only for the type is really not something common, maybe we can just remove them 🤷 |
yes, maybe that is what is best, because usually a pure @types package is a devDependency
Less complexity is likely better. If you have I will remove all the peerDependencies in |
🎉 This issue has been resolved in version 13.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
@codingame/monaco-vscode-extension-api
has@types/vscode
as peerDependency. This should be devDependency.Are you aware there is a dependency loop from
@codingame/monaco-vscode-api
=>@codingame/monaco-vscode-files-service-override
=>@codingame/monaco-vscode-api
and other packages?Is it still necessary to redefine
monaco-editor
on this level or could you use@codingame/monaco-vscode-editor-api
everywhere? I no longer do this onmonaco-languageclient
level (TypeFox/monaco-languageclient#836).Would this be possible with vscode as well or is the global package rewrite required?
Btw, we currently cannot prevent
to install both versions? I always thought that the closest version of
@codingame/monaco-vscode-api
drives the deduplication. But, it seems the problem comes fromvscode@npm:@codingame/[email protected]
being the previous dependency to@codingame/monaco-vscode-extensions-service-override
. So, we can only fix this from now on (>=13) and the old workaround for monaco-languageclient should be kept in place for past versions.Does it make sense to define only define
@codingame/monaco-vscode-api
as peer dependency and everything else either as regular or optional dependency to remove complexity?The text was updated successfully, but these errors were encountered: