Skip to content

Commit db6113c

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent b670bca commit db6113c

File tree

3 files changed

+10
-38
lines changed

3 files changed

+10
-38
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ node_modules
3232
npm-shrinkwrap.json
3333
package-lock.json
3434
yarn.lock
35+
36+
.npmignore

Diff for: .npmignore

-38
This file was deleted.

Diff for: 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",
@@ -43,6 +44,7 @@
4344
"in-publish": "^2.0.1",
4445
"indexof": "^0.0.1",
4546
"is": "^3.3.0",
47+
"npmignore": "^0.3.0",
4648
"nyc": "^10.3.2",
4749
"safe-publish-latest": "^2.0.0",
4850
"tape": "^5.6.1"
@@ -75,5 +77,11 @@
7577
"commitLimit": false,
7678
"backfillLimit": false,
7779
"hideCredit": true
80+
},
81+
"publishConfig": {
82+
"ignore": [
83+
".github/workflows",
84+
"test-corejs.js"
85+
]
7886
}
7987
}

0 commit comments

Comments
 (0)