Skip to content

Commit f676334

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent bee2a99 commit f676334

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
@@ -23,3 +23,5 @@ yarn.lock
2323

2424
coverage/
2525
.nyc_output/
26+
27+
.npmignore

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Determine if a function is an ES6 arrow function or not.",
55
"main": "index.js",
66
"scripts": {
7+
"prepack": "npmignore --auto --commentLines=autogenerated",
78
"prepublishOnly": "safe-publish-latest",
89
"prepublish": "not-in-publish || npm run prepublishOnly",
910
"pretest": "npm run lint",
@@ -46,6 +47,7 @@
4647
"make-arrow-function": "^1.2.0",
4748
"make-async-function": "^1.0.0",
4849
"make-generator-function": "^2.0.0",
50+
"npmignore": "^0.3.0",
4951
"nyc": "^10.3.2",
5052
"safe-publish-latest": "^2.0.0",
5153
"tape": "^5.6.1"
@@ -70,5 +72,10 @@
7072
},
7173
"engines": {
7274
"node": ">= 0.4"
75+
},
76+
"publishConfig": {
77+
"ignore": [
78+
".github/workflows"
79+
]
7380
}
7481
}

0 commit comments

Comments
 (0)