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
Closed

NPM modules are not publishing #54

shanalikhan opened this issue Dec 15, 2015 · 6 comments

Comments

@shanalikhan
Copy link

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
Copy link
Member

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.

@shanalikhan
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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
Copy link
Author

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

@joaomoreno
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants