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 Nov 3, 2022
1 parent aa22741 commit 3587a34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 68 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ typings/
npm-shrinkwrap.json
package-lock.json
yarn.lock

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

This file was deleted.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"license": "MIT",
"main": "index",
"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 @@ -62,6 +63,7 @@
"for-each": "^0.3.3",
"has-strict-mode": "^1.0.1",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"object-inspect": "^1.12.2",
"safe-publish-latest": "^2.0.0",
Expand Down Expand Up @@ -91,9 +93,9 @@
"engines": {
"node": ">= 0.4"
},
"greenkeeper": {
"publishConfig": {
"ignore": [
"nyc"
".github/workflows"
]
}
}

0 comments on commit 3587a34

Please sign in to comment.