Skip to content

Commit b8d050b

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent ea43809 commit b8d050b

File tree

3 files changed

+9
-111
lines changed

3 files changed

+9
-111
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

-111
This file was deleted.

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Determine if a function is a native async function.",
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",
@@ -49,6 +50,7 @@
4950
"in-publish": "^2.0.1",
5051
"make-async-function": "^1.0.0",
5152
"make-generator-function": "^2.0.0",
53+
"npmignore": "^0.3.0",
5254
"nyc": "^10.3.2",
5355
"safe-publish-latest": "^2.0.0",
5456
"tape": "^5.6.1",
@@ -82,5 +84,10 @@
8284
"commitLimit": false,
8385
"backfillLimit": false,
8486
"hideCredit": true
87+
},
88+
"publishConfig": {
89+
"ignore": [
90+
".github/workflows"
91+
]
8592
}
8693
}

0 commit comments

Comments
 (0)