-
Notifications
You must be signed in to change notification settings - Fork 211
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
vsce publish
includes files from adjacent directories.
#777
Comments
When I remove
|
It's hard to understand the full steps here. Can you scaffold a project and put it in GitHub so I can run |
Minimal repro of our setup : https://github.com/romainmenke/vsce-workspace-bug-1 |
@joaomoreno Thank you for taking a look. To trigger the failure you follow these steps :
|
Oh I completely ignored the README. Sorry about that. |
Got it. This is about npm workspaces, which vsce doesn't support yet: #580 |
Thanks for the reply and link to that issue. Is it possible to have a more specific error message? It took me a long time to figure out that workspaces were a factor and it didn't even occur to me that they were not supported at all (we've had them for some time now). I don't mind that they aren't supported (yet) but if possible and low effort a good error message would be nice. |
It's hard to detect workspaces from |
If it is not possible to accurately detect workspaces it is likely better to do nothing. |
as a workaround, you can add adjacent directories to your |
Workspace outline :
Each is a npm workspace with a single
package-lock.json
and a sharednode_modules
directory.When we try to publish extension 1 it fails with :
ERROR invalid relative path: extension/../.DS_Store
vscode ls
reveals :So it tries to include extension 2 while publishing extension 1.
I have no idea if
workspace A
is relevant in any way.I wanted to provide an as complete picture of our setup as possible.
The text was updated successfully, but these errors were encountered: