Skip to content

Commit 7efd833

Browse files
committed
Ignore uneeded files on npm publish
Use files field to specify only required published files Tested with `npm pack`. Result was as follows: ```krahuja-mn1:loader.js krahuja$ npm pack loader.js-4.0.10.tgz krahuja-mn1:loader.js krahuja$ tar -tf loader.js-4.0.10.tgz package/package.json package/.npmignore package/README.md package/index.js package/LICENSE.md package/lib/loader/loader.js```
1 parent 62b7ec8 commit 7efd833

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
"test": "testem ci && jshint lib tests && jscs lib tests",
2121
"test:dev": "testem"
2222
},
23+
"files": [
24+
"index.js",
25+
"lib"
26+
],
2327
"author": "",
2428
"license": "MIT",
2529
"bugs": {

0 commit comments

Comments
 (0)