Skip to content

Commit 3360011

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 651c6b0 commit 3360011

File tree

3 files changed

+9
-110
lines changed

3 files changed

+9
-110
lines changed

.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

.npmignore

-110
This file was deleted.

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
"prepublish": "not-in-publish || npm run prepublishOnly",
1314
"prepublishOnly": "safe-publish-latest",
1415
"lint": "eslint .",
@@ -49,6 +50,7 @@
4950
"auto-changelog": "^2.4.0",
5051
"eslint": "=8.8.0",
5152
"mock-property": "^1.0.0",
53+
"npmignore": "^0.3.0",
5254
"nyc": "^10.3.2",
5355
"safe-publish-latest": "^2.0.0",
5456
"semver": "^6.3.0",
@@ -61,5 +63,10 @@
6163
"commitLimit": false,
6264
"backfillLimit": false,
6365
"hideCredit": true
66+
},
67+
"publishConfig": {
68+
"ignore": [
69+
".github"
70+
]
6471
}
6572
}

0 commit comments

Comments
 (0)