json-schema-traverse icon indicating copy to clipboard operation
json-schema-traverse copied to clipboard

Reduce the size of the npm package by limiting the included files

Open paazmaya opened this issue 6 years ago • 1 comments

Looks like the files property (https://docs.npmjs.com/files/package.json#files) is not used in package.json to specify the included files, nor is the .npmignore file (https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package) is being used for blacklisting unwanted files, for the package published to npm.

Would you consider adding either the files property or the .npmignore file, so that the resulting package file would have smaller size?

The current size can be seen when executing the command npm pack (https://docs.npmjs.com/cli/pack).

This issue was create via tawata

paazmaya avatar Oct 31 '18 00:10 paazmaya

This can also cause your tests to show up when your users run theirs: https://stackoverflow.com/q/60514786/3001761. Note that files: [] would have the same result - the README.md and index.js are included by default.

textbook avatar Mar 03 '20 20:03 textbook