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

Exclude unnecessary files & directories from npm publish #13

Closed
m-sureshraj opened this issue Aug 26, 2019 · 0 comments · Fixed by #33
Closed

Exclude unnecessary files & directories from npm publish #13

m-sureshraj opened this issue Aug 26, 2019 · 0 comments · Fixed by #33
Assignees

Comments

@m-sureshraj
Copy link
Owner

m-sureshraj commented Aug 26, 2019

Use files property in package.json to whitelist the necessary files.

Use npm publish --dry-run - to preview the files before publishing.

https://stackoverflow.com/questions/40795836/how-do-you-use-the-files-and-directories-properties-in-package-json

https://medium.com/@nodejs/publishing-npm-packages-c4c615a0fc6b

@m-sureshraj m-sureshraj self-assigned this Dec 29, 2019
m-sureshraj added a commit that referenced this issue Dec 30, 2019
m-sureshraj added a commit that referenced this issue Dec 31, 2019
* Included only necessary files through "files" property in package.json
* Moved config/*, lib/* and bin/* files into src directory

closes #13
m-sureshraj added a commit that referenced this issue Dec 31, 2019
* Included only necessary files through "files" property in package.json
* Moved config/*, lib/* and bin/* files into src directory

closes #13
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

Successfully merging a pull request may close this issue.

1 participant