Skip to content

Commit

Permalink
chore: manage published files via files option (#5659)
Browse files Browse the repository at this point in the history
Rather than a denylist (`.npmignore`) we can instead use an allowlist
via the `files` option in `package.json`. This makes it much harder to
accidentally include files or folders in the build as you have to
explicitly list the files that will be included.

Fixes #5648.
  • Loading branch information
jackfranklin committed Apr 17, 2020
1 parent 35fc654 commit ef3befa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 48 deletions.
48 changes: 0 additions & 48 deletions .npmignore

This file was deleted.

6 changes: 6 additions & 0 deletions package.json
Expand Up @@ -31,6 +31,12 @@
"unit-bundle": "mocha --config mocha-config/browser-bundle-tests.js",
"update-protocol-d-ts": "node utils/protocol-types-generator"
},
"files": [
"lib/",
"Errors.js",
"DeviceDescriptors.js",
"index.js"
],
"author": "The Chromium Authors",
"license": "Apache-2.0",
"dependencies": {
Expand Down

0 comments on commit ef3befa

Please sign in to comment.