Skip to content

Commit

Permalink
update list of published files in package.json
Browse files Browse the repository at this point in the history
- this will fix a problem with npm (potentially) publishing certain files
which should always be ignored; see npm/npm-packlist#14.
- also fixes issue with growl images not getting published!
- add `directories` property for metadata

PRO TIP: use `npm pack --dry-run` to see what would be included in
published tarball.
  • Loading branch information
boneskull committed Nov 2, 2018
1 parent 3e77008 commit 46e9855
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,14 +510,20 @@
"watchify": "^3.7.0"
},
"files": [
"bin",
"images",
"lib",
"bin/{*mocha,options.js}",
"assets/growl/*.png",
"lib/**/*.{js,html}",
"index.js",
"mocha.css",
"mocha.js",
"browser-entry.js"
],
"directories": {
"doc": "doc",
"bin": "bin",
"lib": "lib",
"test": "test"
},
"browser": {
"growl": "./lib/browser/growl.js",
"tty": "./lib/browser/tty.js",
Expand Down

0 comments on commit 46e9855

Please sign in to comment.