Skip to content

Commit 95b503f

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent f5786fa commit 95b503f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@ typings/
6464
npm-shrinkwrap.json
6565
package-lock.json
6666
yarn.lock
67+
68+
.npmignore

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"./package.json": "./package.json"
1010
},
1111
"scripts": {
12+
"prepack": "npmignore --auto --commentLines=autogenerated",
1213
"prepublishOnly": "safe-publish-latest",
1314
"prepublish": "not-in-publish || npm run prepublishOnly",
1415
"lint": "eslint --ext=js,mjs .",
@@ -47,6 +48,7 @@
4748
"eslint": "=8.8.0",
4849
"for-each": "^0.3.3",
4950
"in-publish": "^2.0.1",
51+
"npmignore": "^0.3.0",
5052
"nyc": "^10.3.2",
5153
"object-inspect": "^1.12.2",
5254
"safe-publish-latest": "^2.0.0",
@@ -65,5 +67,10 @@
6567
"commitLimit": false,
6668
"backfillLimit": false,
6769
"hideCredit": true
70+
},
71+
"publishConfig": {
72+
"ignore": [
73+
".github/workflows"
74+
]
6875
}
6976
}

0 commit comments

Comments
 (0)