satazor / js-spark-md5

Lightning fast normal and incremental md5 for javascript
Do What The F*ck You Want To Public License
2.46k stars 470 forks source link

Add files property to package.json #35

Closed Jameskmonger closed 8 years ago

Jameskmonger commented 8 years ago

By adding the files property to package.json, we can tell npm which files to distribute. Currently, all the configuration files (.editorconfig, .jshintrc) and all the test files are distributed with npm. This increases the size of the npm distribution beyond what it needs to be.

npm will automatically include the README.md and LICENSE files for you, along with the package.json file.

This change reduces the distribution from 219kb to just over 25kb. That's almost a 90% saving!

satazor commented 8 years ago

I guess we should include also the .min file. Some people might be using it.

Thanks for the PR.

Jameskmonger commented 8 years ago

@satazor I've added the .min file to the files property.

satazor commented 8 years ago

Published as 2.0.2