Skip to content

Ignore tests dir when publishing - #52

Open
cesine wants to merge 1 commit into
3rd-Eden:masterfrom
cesine:patch-1
Open

Ignore tests dir when publishing#52
cesine wants to merge 1 commit into
3rd-Eden:masterfrom
cesine:patch-1

Conversation

@cesine

@cesine cesine commented Dec 3, 2019

Copy link
Copy Markdown

We noticed the test fixtures were in our production docker container

$ du -k node_modules/* | awk '$1 > 2000' | sort -nr # 2MB
4700  node_modules/hashring
4608  node_modules/@shutterstock
4596  node_modules/hashring/tests
4576  node_modules/hashring/tests/fixtures

Currently npm publish is using your .gitignore since there is no .npmignore provided https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package

This pr adds an .npmignore (based on your .gitignore to keep the existing functionality, with the tests directory excluded)

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.

1 participant