Update .npmignore#72
Conversation
|
Many thanks. Obviously, I'm only a tourist in the JavaScript world. By the way, that's a pretty crazy way for |
|
By the way, is there really any reason to include |
|
I was making the same mistake for a long time as well. An alternative is to include a You probably don't need the dist folder for npm installs, but wasn't sure about all your use cases. Trying to make the PR as light as possible. |
|
Yeah, it made a huge difference. Thanks again for pointing +++ Jayson Harshbarger [Nov 17 15 23:02 ]:
|

When publishing a npm module the entire working directory is published unless excluded using
.npmignore. In this case it means installing commonmark includes tests, benchmarks, bower_components, documentation (which itself includes bootstrap, jquery, and lodash), and many temporary files that I am certain you never intended to publish. The current commonmark tgz downloaded from npm is 1.3 Mb (https://registry.npmjs.org/commonmark/-/commonmark-0.22.0.tgz). With this change only package.json, LICENSE, README.md and the code files will be packaged. You can test what files get packaged by executing npm pack. Should be ~120k after this change.