-
-
Notifications
You must be signed in to change notification settings - Fork 36
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 package includes non-production files #23
Comments
In general, every package i maintain ships these on purpose - However, if previous versions in the same major line didn’t include them, it’d be fine to add them to the npmignore config. |
I'd ask you to reconsider. Packages that ship tests are part of the problem why |
@silverwind that's a problem npm could solve holistically by providing a way for a package to ship multiple variants, eg "default" and "with tests", rather than trying to convince individual maintainers to do it. |
I'd suggest to at least use the |
We're already set up to use |
One mystery solved. When I looked more carefully at difference between 1.2.6 and 1.2.7, the old package did have The size difference is largely due to the inclusion of a CHANGELOG. There are also small potentially surplus files with I am going to close this, as my initial concern was we had started including example and test files. |
I noticed today that the recent releases include example and test files. The
package.json
does not include afiles
property. Not sure how the old releases were done to skip those!https://packagephobia.com/result?p=minimist
The text was updated successfully, but these errors were encountered: