jsonlint icon indicating copy to clipboard operation
jsonlint copied to clipboard

Please .npmignore anything that's not needed for production

Open MarcDiethelm opened this issue 11 years ago • 1 comments

I'm pretty sure tests are not needed in production. :) They just bloat project dependencies, install time, use bandwidth, etc.

You could either use the package.json files property to whitelist files for production or .npmignore to blacklist unneeded ones.

For more info on .npmignore and an automatic generator see https://github.com/inikulin/dmn

MarcDiethelm avatar Sep 27 '14 12:09 MarcDiethelm

I needed some bugfixes and extensions to jsonlint and did them in my fork. I released the changes as a new NPM module @prantlf/jsonlint. Removing unnecessary content from the NPM package was one of them.

prantlf avatar May 19 '19 05:05 prantlf