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

NPM modules are not publishing #54

Closed
shanalikhan opened this Issue Dec 15, 2015 · 6 comments

Comments

Projects
None yet
2 participants
@shanalikhan
Copy link

commented Dec 15, 2015

Hi ,
I created an extension for VS code. I published and downloaded it and found out that the NPM modules i used are not published. How to publish those modules online.

@joaomoreno

This comment has been minimized.

Copy link
Member

commented Dec 15, 2015

Run vsce list to see which files will be published.

Make sure you

  1. Run npm install to get those dependencies in disk before publishing, and
  2. Do not list them in your .vscodeignore.

@joaomoreno joaomoreno closed this Dec 15, 2015

@shanalikhan

This comment has been minimized.

Copy link
Author

commented Dec 15, 2015

Following are the modules im using in extension.
"devDependencies": {
"fs": "^0.0.2",
"github": "^0.2.4",
"node-github": "0.0.3",
"open": "^0.0.5",
"typescript": "^1.6.2",
"vscode": "0.10.x"
},
"dependencies": {
"fs": "^0.0.2",
"github": "^0.2.4",
"node-github": "0.0.3",
"open": "^0.0.5",
"typescript": "^1.6.2",
"vscode": "0.10.x"
}

this is my vscodeignore file
.vscode/**
typings/**
out/test/**
test/**
src/**
*/.map
.gitignore
tsconfig.json
vsc-extension-quickstart.md

I still dont see my npm modules listing in vsce list
how to add those modules in publishing.

@joaomoreno

This comment has been minimized.

Copy link
Member

commented Dec 16, 2015

I'm assuming you ran npm install. Are your sources open? Could I take a look at them, so I can try out the same?

@joaomoreno joaomoreno reopened this Dec 16, 2015

@shanalikhan

This comment has been minimized.

Copy link
Author

commented Dec 16, 2015

Yes i ran npm install.
It works on my machine when i publish and download from there i dont see any npm modules there

https://marketplace.visualstudio.com/items/Shan.code-settings-sync
Repo : https://github.com/shanalikhan1/code-settings-sync

@shanalikhan

This comment has been minimized.

Copy link
Author

commented Dec 16, 2015

its working now. one thing. i developed on windows and installed modules on windows , will vsce auto compile it for mac and linux ?

@joaomoreno

This comment has been minimized.

Copy link
Member

commented Dec 16, 2015

How did it start working?

No, Code doesn't support extensions with native node module dependencies yet. See Microsoft/vscode#658 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.