Vscode-vsce: vsce package command not including node_modules directory

Created on 12 Jan 2017  路  9Comments  路  Source: microsoft/vscode-vsce

_From @indiejames on January 12, 2017 15:14_

  • VSCode Version: 1.8.1
  • OS Version: OS X Sierra

Steps to Reproduce:

  1. Create extension
  2. Run npm install to create node_modules directory
  3. Run vsce package in extension directory
  4. unzip .vsix file
  5. No node_modules

_Copied from original issue: Microsoft/vscode#18455_

needs more info

Most helpful comment

Maybe I missed something. There are another place to put this dependency? I tested installing the extension and doesn't work, than I checked the installation path of extension and copy manually the node_modules (electron_edge), than extension works.

All 9 comments

@indiejames What's inside your .vsceignore file?

Yeah, that's the problem:

node_modules/*/

I don't recall creating a .vsceignore file. Does that get created by default?

I don't think so. 馃槙

Hi, I don't have .vsceignore and I tried everything but my node_modules never was included in the VSIX package. I'm using vsce package command.
Maybe this folder be always ignored?

Is your dependency listed in package.json?

Yes, like a screenshot

sc

Well, if it's a devDependency why should it be included along with the extension?

Maybe I missed something. There are another place to put this dependency? I tested installing the extension and doesn't work, than I checked the installation path of extension and copy manually the node_modules (electron_edge), than extension works.

Now works. I changed package.json (see image below). Thanks a lot for help. ;)

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RomaDev94 picture RomaDev94  路  5Comments

kobelobster picture kobelobster  路  4Comments

felixfbecker picture felixfbecker  路  6Comments

SamVerschueren picture SamVerschueren  路  5Comments

brandoncc picture brandoncc  路  6Comments