Skip to content

Commit e3dc017

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 3aedda4 commit e3dc017

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.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

package.json

Lines changed: 7 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
"prepublish": "not-in-publish || npm run prepublishOnly",
1314
"prepublishOnly": "safe-publish-latest",
1415
"pretest": "npm run lint",
@@ -52,6 +53,7 @@
5253
"functions-have-names": "^1.2.3",
5354
"has-strict-mode": "^1.0.1",
5455
"in-publish": "^2.0.1",
56+
"npmignore": "^0.3.0",
5557
"nyc": "^10.3.2",
5658
"safe-publish-latest": "^2.0.0",
5759
"tape": "^5.6.1"
@@ -85,5 +87,10 @@
8587
"backfillLimit": false,
8688
"hideCredit": true,
8789
"startingVersion": "2.1.4"
90+
},
91+
"publishConfig": {
92+
"ignore": [
93+
".github/workflows"
94+
]
8895
}
8996
}

0 commit comments

Comments
 (0)