Skip to content

Commit

Permalink
Use "files" package.json field instead of npmignore
Browse files Browse the repository at this point in the history
The npmignore file excludes some items, but is not exhaustive and a lot
of artifacts still get packaged up, leading to a package that currently
takes up to 4.4 MB on disk. You could keep adding entries to npmignore
but it's easy to miss things as the build process evolves.

With this change the on-disk size is down to a little over 200KB. This
includes `/src` plus `CHANGELOG`, `LICENSE`, `package.json`, and
`README` (https://docs.npmjs.com/files/package.json#files).

Fixes #271
  • Loading branch information
marcind committed Jun 2, 2018
1 parent 7a2856d commit 7d19b15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "2.10.0",
"description": "SDK for Auth0 API v2",
"main": "src/index.js",
"files": [
"src"
],
"scripts": {
"test": "mocha -R spec $(find ./test -name *.tests.js)",
"test:ci":
Expand Down

0 comments on commit 7d19b15

Please sign in to comment.