Skip to content

Commit

Permalink
Use files array in package.json instead of .npmignore (#692)
Browse files Browse the repository at this point in the history
Whitelists are better than blacklists. Tested to ensure the same files
are bundled with `npm pack`.
  • Loading branch information
RyanZim committed May 23, 2019
1 parent 7a8424e commit fff04cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .npmignore

This file was deleted.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
"standard": "^12.0.1"
},
"main": "./lib/index.js",
"files": [
"lib/",
"!lib/**/__tests__/"
],
"scripts": {
"full-ci": "npm run lint && npm run coverage",
"coverage": "istanbul cover -i 'lib/**' -x '**/__tests__/**' test.js",
Expand Down

0 comments on commit fff04cb

Please sign in to comment.