Skip to content
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 package defaults to using wrong package manager #108044

Closed
ntilwalli opened this issue Oct 3, 2020 · 2 comments
Closed

vsce package defaults to using wrong package manager #108044

ntilwalli opened this issue Oct 3, 2020 · 2 comments

Comments

@ntilwalli
Copy link

ntilwalli commented Oct 3, 2020

  • VSCE Version: 1.81.0
  • OS Version: MacOS 10.15.6

Steps to Reproduce:

  1. At command-line run yo code and create the default hello world extension (choose npm as package manager, not yarn)
    add a publisher property to package.json
  2. Install any package in "dependencies" (i.e. npm install --save html-to-hyperscript)
  3. Run vsce package
  4. Notice how it uses yarn when I have told it to use npm. It says...
Executing prepublish script 'yarn run vscode:prepublish'...
yarn run v1.22.5

In using the wrong package manager it also bundles the package improperly by skipping including dependencies from node_modules

The workaround is to always explicitly either use the --yarn or --no-yarn option when running vsce package. When the package manager is included explicitly, the node_modules dependencies are properly included.

Does this issue occur when all extensions are disabled?: Not applicable, since this is an extensions issue.

@usernamehw
Copy link
Contributor

You should probably file this issue at https://github.com/microsoft/vscode-vsce

@ntilwalli
Copy link
Author

@usernamehw done thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants