Skip to content

Commit 3587a34

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent aa22741 commit 3587a34

3 files changed

Lines changed: 6 additions & 68 deletions

File tree

.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",
2222
"scripts": {
23+
"prepack": "npmignore --auto --commentLines=autogenerated",
2324
"prepublishOnly": "safe-publish-latest",
2425
"prepublish": "not-in-publish || npm run prepublishOnly",
2526
"pretest": "npm run lint",
@@ -62,6 +63,7 @@
6263
"for-each": "^0.3.3",
6364
"has-strict-mode": "^1.0.1",
6465
"in-publish": "^2.0.1",
66+
"npmignore": "^0.3.0",
6567
"nyc": "^10.3.2",
6668
"object-inspect": "^1.12.2",
6769
"safe-publish-latest": "^2.0.0",
@@ -91,9 +93,9 @@
9193
"engines": {
9294
"node": ">= 0.4"
9395
},
94-
"greenkeeper": {
96+
"publishConfig": {
9597
"ignore": [
96-
"nyc"
98+
".github/workflows"
9799
]
98100
}
99101
}

0 commit comments

Comments
 (0)