-
Notifications
You must be signed in to change notification settings - Fork 207
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
Support npm workspaces #580
Comments
On the other hand that part of the RFC:
makes perfect sense, and if the |
Got into this problem as well, the error was not obvious at all. See:
The error message here seems to be from the zipping library yazl, https://github.com/thejoshwolfe/yazl/blob/36b2a6a31a32637dca19b34e7b3295378e78a644/index.js#L368 The If there were more debug logs, it would have been easier to find out 😓 |
Any progress on this? I would also like to get VS Code Extensions working in a monorepo and it doesn't work for me. I'm assuming that there's still work needed to fully support npm workspaces? |
I just ran into this after a few hours of cryptic error messages. I haven't done extensive testing yet but my workaround so far is to bundle with |
I ran into this issue too. But I figured out it's also possble to specify {
// …
"vsce": {
"dependencies": false
}
} |
Just ran into this issue, it would great to have this documented. |
any example? |
Thanks! But an example not using bundle. I cant use a webpack because I have external binaries. |
I found a workaround that allows you to partially include This does break relative links in the readme, so make sure to use only absolute links. |
In my case, with vsce 3.1.0, I get this error because there is a workspace in my package.json that is a link to a shared folder.
The workaround doesn't seem to solve it. |
I've just finished moving several VSCode extensions into single monorepo using npm v7 workspaces.
However when the
vsce
packages usingnpm
(notyarn
) it does internally:And that command fails from the workspace to lookup common modules in the root.
I logged an issue at npm
Although I am not sure if this is
npm list
bug or feature, probably thenpm list
will have to be extended to look those modules and then maybe some additional work will be necessary in thevsce
to package the files correctly.The text was updated successfully, but these errors were encountered: