Skip to content

Commit

Permalink
[meta] use npmignore to autogenerate an npmignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jun 25, 2022
1 parent 71f4c0c commit 8a78b9a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ yarn.lock

coverage/
.nyc_output/

.npmignore
26 changes: 0 additions & 26 deletions .npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
Expand Down Expand Up @@ -49,6 +50,7 @@
"es5-shim": "^4.6.7",
"eslint": "=8.8.0",
"functions-have-names": "^1.2.3",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.5.3"
Expand All @@ -74,5 +76,10 @@
},
"engines": {
"node": ">= 0.4"
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

0 comments on commit 8a78b9a

Please sign in to comment.