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

Add .npmignore #69

Merged
merged 1 commit into from Oct 30, 2016
Merged

Add .npmignore #69

merged 1 commit into from Oct 30, 2016

Conversation

jhermsmeier
Copy link
Contributor

Ignore unnecessary files to slim published module, so that it doesn't contain build artefacts etc.

Ignore unnecessary files to slim published module
@ericelliott
Copy link
Collaborator

Does this exclude package.json? Does that work?

@jhermsmeier
Copy link
Contributor Author

jhermsmeier commented Oct 30, 2016

The .npmignore only tells npm to ignore the files / directories listed in it when running
npm publish, so that they don't end up being in the tarball, much like how .gitignore works.
It does not exclude the package.json (see https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package for details).

This will just keep the other build files and the sources out, as that's not loaded or used when installed via npm.

@ericelliott ericelliott merged commit f0e2575 into paralleldrive:master Oct 30, 2016
@jhermsmeier jhermsmeier deleted the npmignore branch October 30, 2016 20:20
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 this pull request may close these issues.

None yet

2 participants