Skip to content

Commit ca4c446

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent be7d8eb commit ca4c446

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
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

package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"./package.json": "./package.json"
99
},
1010
"scripts": {
11+
"prepack": "npmignore --auto --commentLines=autogenerated",
1112
"test": "echo \"Error: no test specified\" && exit 1"
1213
},
1314
"repository": {
@@ -27,5 +28,13 @@
2728
"bugs": {
2829
"url": "https://github.com/inspect-js/is-array-buffer/issues"
2930
},
30-
"homepage": "https://github.com/inspect-js/is-array-buffer#readme"
31+
"homepage": "https://github.com/inspect-js/is-array-buffer#readme",
32+
"devDependencies": {
33+
"npmignore": "^0.3.0",
34+
},
35+
"publishConfig": {
36+
"ignore": [
37+
".github/workflows"
38+
]
39+
}
3140
}

0 commit comments

Comments
 (0)