Skip to content

Commit e0770e5

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 6ee186b commit e0770e5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ yarn.lock
99

1010
coverage
1111
.nyc_output
12+
13+
.npmignore

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"test": "test"
1010
},
1111
"scripts": {
12+
"prepack": "npmignore --auto --commentLines=autogenerated",
1213
"prepublishOnly": "safe-publish-latest",
1314
"prepublish": "not-in-publish || npm run prepublishOnly",
1415
"pretest": "npm run lint",
@@ -32,6 +33,7 @@
3233
"auto-changelog": "^2.4.0",
3334
"eslint": "=8.8.0",
3435
"in-publish": "^2.0.1",
36+
"npmignore": "^0.3.0",
3537
"safe-publish-latest": "^2.0.0",
3638
"tape": "^5.7.1"
3739
},
@@ -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)