Skip to content

Commit 77d693c

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 67a3677 commit 77d693c

File tree

3 files changed

+9
-69
lines changed

3 files changed

+9
-69
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

-69
This file was deleted.

Diff for: package.json

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"./package.json": "./package.json"
1313
},
1414
"scripts": {
15+
"prepack": "npmignore --auto --commentLines=autogenerated",
1516
"prepublish": "not-in-publish || npm run prepublishOnly",
1617
"prepublishOnly": "safe-publish-latest",
1718
"preversion": "auto-changelog",
@@ -59,6 +60,7 @@
5960
"evalmd": "^0.0.19",
6061
"functions-have-names": "^1.2.2",
6162
"has-strict-mode": "^1.0.1",
63+
"npmignore": "^0.3.0",
6264
"nyc": "^10.3.2",
6365
"safe-publish-latest": "^2.0.0",
6466
"tape": "^5.5.3"
@@ -77,5 +79,10 @@
7779
"commitLimit": false,
7880
"backfillLimit": false,
7981
"hideCredit": true
82+
},
83+
"publishConfig": {
84+
"ignore": [
85+
".github/workflows"
86+
]
8087
}
8188
}

0 commit comments

Comments
 (0)