Skip to content

Commit 90ce602

Browse files
committed
[meta] add npmignore
1 parent cd37473 commit 90ce602

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ coverage/
77
npm-shrinkwrap.json
88
package-lock.json
99
yarn.lock
10+
11+
.npmignore

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "index.js",
66
"sideEffects": false,
77
"scripts": {
8+
"prepack": "npmignore --auto --commentLines=autogenerated",
89
"lint": "eslint --ext=js,mjs .",
910
"pretest": "npm run lint",
1011
"tests-only": "nyc tape 'test/**/*'",
@@ -29,9 +30,16 @@
2930
"available-typed-arrays": "^1.0.7",
3031
"eslint": "=8.8.0",
3132
"for-each": "^0.3.5",
33+
"npmignore": "^0.3.1",
3234
"nyc": "^10.3.2",
3335
"tape": "^5.9.0"
3436
},
37+
"publishConfig": {
38+
"ignore": [
39+
".github/workflows",
40+
"test"
41+
]
42+
},
3543
"engines": {
3644
"node": ">= 0.4"
3745
}

0 commit comments

Comments
 (0)