Skip to content

Commit d796271

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent b5998de commit d796271

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ package-lock.json
99

1010
.nyc_output/
1111
coverage/
12+
13+
.npmignore

.npmignore

-2
This file was deleted.

package.json

+8
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"license": "MIT",
3737
"main": "index.js",
3838
"scripts": {
39+
"prepack": "npmignore --auto --commentLines=autogenerated",
3940
"prepublishOnly": "safe-publish-latest",
4041
"prepublish": "not-in-publish || npm run prepublishOnly",
4142
"pretest": "npm run lint",
@@ -61,6 +62,7 @@
6162
"in-publish": "^2.0.1",
6263
"indexof": "^0.0.1",
6364
"is": "^3.3.0",
65+
"npmignore": "^0.3.0",
6466
"nyc": "^10.3.2",
6567
"safe-publish-latest": "^2.0.0",
6668
"tape": "^5.6.1"
@@ -85,5 +87,11 @@
8587
},
8688
"engines": {
8789
"node": ">= 0.4"
90+
},
91+
"publishConfig": {
92+
"ignore": [
93+
".github/workflows",
94+
"test/*"
95+
]
8896
}
8997
}

0 commit comments

Comments
 (0)