Skip to content

Commit 68b06f0

Browse files
committed
Whitelist files to be published to npm
This package has lots of files published to npm, including: * .idea folder with 10 files * .editorconfig * .eslintrc * .npmignore Move from blacklist (`.npmignore`) to a whitelist (`files` in package.json) so it's not so easy to regress, and add the essential files there.
1 parent 7033231 commit 68b06f0

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.npmignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@
3636
"travis": "npm run cover -- --report lcovonly",
3737
"prepublish": "npm prune && npm test",
3838
"publish-patch": "npm prune && npm test && npm version patch && git push && git push --tags && npm publish"
39-
}
39+
},
40+
"files": [
41+
"index.js"
42+
]
4043
}

0 commit comments

Comments
 (0)