Skip to content

Commit 5d342c9

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 1cd3f75 commit 5d342c9

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ npm-debug.log
88
npm-shrinkwrap.json
99
package-lock.json
1010
yarn.lock
11+
12+
.npmignore

.npmignore

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

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "AST utility module for statically analyzing JSX",
55
"main": "lib/index.js",
66
"scripts": {
7+
"prepack": "npmignore --auto --commentLines=autogenerated",
78
"prebuild": "rimraf lib",
89
"build": "babel src --out-dir lib",
910
"prepublishOnly": "safe-publish-latest && npm test && npm run build",
@@ -36,6 +37,7 @@
3637
"in-publish": "^2.0.1",
3738
"jest": "^20.0.4",
3839
"jest-cli": "^20.0.4",
40+
"npmignore": "^0.3.0",
3941
"object.entries": "^1.1.5",
4042
"object.fromentries": "^2.0.5",
4143
"rimraf": "^2.7.1",
@@ -71,5 +73,10 @@
7173
"dependencies": {
7274
"array-includes": "^3.1.5",
7375
"object.assign": "^4.1.2"
76+
},
77+
"publishConfig": {
78+
"ignore": [
79+
".github/workflows"
80+
]
7481
}
7582
}

0 commit comments

Comments
 (0)