Skip to content

Commit befa203

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 100acdf commit befa203

File tree

3 files changed

+10
-36
lines changed

3 files changed

+10
-36
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ node_modules
3131
npm-shrinkwrap.json
3232
package-lock.json
3333
yarn.lock
34+
35+
.npmignore

.npmignore

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

package.json

Lines changed: 8 additions & 0 deletions
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",
@@ -50,6 +51,7 @@
5051
"in-publish": "^2.0.1",
5152
"indexof": "^0.0.1",
5253
"is": "^3.3.0",
54+
"npmignore": "^0.3.0",
5355
"nyc": "^10.3.2",
5456
"safe-publish-latest": "^2.0.0",
5557
"tape": "^5.6.1"
@@ -82,5 +84,11 @@
8284
"commitLimit": false,
8385
"backfillLimit": false,
8486
"hideCredit": true
87+
},
88+
"publishConfig": {
89+
"ignore": [
90+
".github/workflows",
91+
"test-corejs.js"
92+
]
8593
}
8694
}

0 commit comments

Comments
 (0)