Skip to content

Commit c4131f5

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 6701ad4 commit c4131f5

File tree

3 files changed

+9
-111
lines changed

3 files changed

+9
-111
lines changed

Diff for: .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

Diff for: .npmignore

-111
This file was deleted.

Diff for: package.json

+7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"./package.json": "./package.json"
1818
},
1919
"scripts": {
20+
"prepack": "npmignore --auto --commentLines=autogenerated",
2021
"prepublishOnly": "safe-publish-latest",
2122
"prepublish": "not-in-publish || npm run prepublishOnly",
2223
"lint": "eslint --ext=.js,.mjs .",
@@ -52,6 +53,7 @@
5253
"eslint": "=8.8.0",
5354
"for-each": "^0.3.3",
5455
"in-publish": "^2.0.1",
56+
"npmignore": "^0.3.0",
5557
"nyc": "^10.3.2",
5658
"object-inspect": "^1.12.2",
5759
"safe-publish-latest": "^2.0.0",
@@ -67,5 +69,10 @@
6769
},
6870
"dependencies": {
6971
"call-bind": "^1.0.2"
72+
},
73+
"publishConfig": {
74+
"ignore": [
75+
".github/workflows"
76+
]
7077
}
7178
}

0 commit comments

Comments
 (0)