relatively small and ridiculously fast parser for all versions of ECMAScript/Javascript, written in the greatest common divisor of all versions of ECMAScript
MIT License
8
stars
2
forks
source link
Use the package.json#files parameter instead of the .npmignore #19
This is a micro-change that aims to reduce redundancy and also makes the module overall "lighter".
Currently the only piece of functional software is the bundle located at dist/jazzle.js, none of the other scripts/components are meant to be used by the user (where by user I mean whoever installs the module as a dependency of their own project).
As such the only file that has a reason to be published to npm is the bundle itself and for this purpose I find more convenient to use the package.json#files field rather than filtering out every other file through the .npmignore.
With this changes we get rid of the .npmignore, which holds pretty much the same information as the .gitignore, and we reduce the overall module size in the npm registry.
Currently the only piece of functional software is the bundle located at
dist/jazzle.js
, none of the other scripts/components are meant to be used by the user (where by user I mean whoever installs the module as a dependency of their own project).As such the only file that has a reason to be published to npm is the bundle itself and for this purpose I find more convenient to use the package.json#files field rather than filtering out every other file through the
.npmignore
.With this changes we get rid of the
.npmignore
, which holds pretty much the same information as the.gitignore
, and we reduce the overall module size in the npm registry.