Skip to content

Commit 42c98f4

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 127c3f0 commit 42c98f4

File tree

3 files changed

+9
-111
lines changed

3 files changed

+9
-111
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,5 @@ dist
107107
npm-shrinkwrap.json
108108
package-lock.json
109109
yarn.lock
110+
111+
.npmignore

.npmignore

-111
This file was deleted.

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"./package.json": "./package.json"
2020
},
2121
"scripts": {
22+
"prepack": "npmignore --auto --commentLines=autogenerated",
2223
"prepublishOnly": "safe-publish-latest",
2324
"prepublish": "not-in-publish || npm run prepublishOnly",
2425
"pretest": "npm run lint",
@@ -63,6 +64,7 @@
6364
"functions-have-names": "^1.2.3",
6465
"has-strict-mode": "^1.0.1",
6566
"in-publish": "^2.0.1",
67+
"npmignore": "^0.3.0",
6668
"nyc": "^10.3.2",
6769
"safe-publish-latest": "^2.0.0",
6870
"tape": "^5.6.1"
@@ -86,5 +88,10 @@
8688
"commitLimit": false,
8789
"backfillLimit": false,
8890
"hideCredit": true
91+
},
92+
"publishConfig": {
93+
"ignore": [
94+
".github/workflows"
95+
]
8996
}
9097
}

0 commit comments

Comments
 (0)