Skip to content

Commit e339ed7

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent d9d7300 commit e339ed7

File tree

3 files changed

+6
-68
lines changed

3 files changed

+6
-68
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,5 @@ typings/
6161
npm-shrinkwrap.json
6262
package-lock.json
6363
yarn.lock
64+
65+
.npmignore

.npmignore

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

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"license": "MIT",
2121
"main": "index.js",
2222
"scripts": {
23+
"prepack": "npmignore --auto --commentLines=autogenerated",
2324
"prepublish": "not-in-publish || npm run prepublishOnly",
2425
"prepublishOnly": "safe-publish-latest",
2526
"pretest": "npm run --silent lint && evalmd README.md",
@@ -63,6 +64,7 @@
6364
"function-bind": "^1.1.1",
6465
"has-strict-mode": "^1.0.1",
6566
"in-publish": "^2.0.1",
67+
"npmignore": "^0.3.0",
6668
"nyc": "^10.3.2",
6769
"object-inspect": "^1.12.2",
6870
"safe-publish-latest": "^2.0.0",
@@ -92,9 +94,9 @@
9294
"engines": {
9395
"node": ">= 0.4"
9496
},
95-
"greenkeeper": {
97+
"publishConfig": {
9698
"ignore": [
97-
"nyc"
99+
".github/workflows"
98100
]
99101
}
100102
}

0 commit comments

Comments
 (0)