Skip to content

Commit 8938588

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 138b3f2 commit 8938588

File tree

3 files changed

+10
-29
lines changed

3 files changed

+10
-29
lines changed

.gitignore

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

2424
coverage/
2525
.nyc_output/
26+
27+
.npmignore

.npmignore

-29
This file was deleted.

package.json

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"license": "MIT",
1010
"main": "index.js",
1111
"scripts": {
12+
"prepack": "npmignore --auto --commentLines=autogenerated",
1213
"prepublishOnly": "safe-publish-latest",
1314
"prepublish": "not-in-publish || npm run prepublishOnly",
1415
"pretest": "npm run lint",
@@ -51,6 +52,7 @@
5152
"eslint": "=8.8.0",
5253
"for-each": "^0.3.3",
5354
"in-publish": "^2.0.1",
55+
"npmignore": "^0.3.0",
5456
"nyc": "^10.3.2",
5557
"safe-publish-latest": "^2.0.0",
5658
"tape": "^5.6.1"
@@ -83,5 +85,11 @@
8385
"commitLimit": false,
8486
"backfillLimit": false,
8587
"hideCredit": true
88+
},
89+
"publishConfig": {
90+
"ignore": [
91+
".github/workflows",
92+
"test-corejs.js"
93+
]
8694
}
8795
}

0 commit comments

Comments
 (0)