Skip to content

Commit 339b880

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent f8dd5fc commit 339b880

3 files changed

Lines changed: 9 additions & 111 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
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

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

package.json

Lines changed: 7 additions & 0 deletions
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
"eslint": "=8.8.0",
6465
"functions-have-names": "^1.2.3",
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"
@@ -78,5 +80,10 @@
7880
"commitLimit": false,
7981
"backfillLimit": false,
8082
"hideCredit": true
83+
},
84+
"publishConfig": {
85+
"ignore": [
86+
".github/workflows"
87+
]
8188
}
8289
}

0 commit comments

Comments
 (0)