You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Install any package in "dependencies" (i.e. npm install --save html-to-hyperscript)
Run vsce package
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.
The text was updated successfully, but these errors were encountered:
Steps to Reproduce:
yo code
and create the default hello world extension (choose npm as package manager, not yarn)add a publisher property to package.json
npm install --save html-to-hyperscript
)vsce package
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 runningvsce package
. When the package manager is included explicitly, the node_modules dependencies are properly included.The text was updated successfully, but these errors were encountered: