Skip to content

Commit 597be5a

Browse files
committed
[meta] use npmignore
1 parent 7cfa0da commit 597be5a

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
@@ -4,3 +4,5 @@ node_modules
44
npm-shrinkwrap.json
55
package-lock.json
66
yarn.lock
7+
8+
.npmignore

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"browser": "browser.js",
66
"main": "index.js",
77
"scripts": {
8+
"prepack": "npmignore --auto --commentLines=autogenerated",
89
"lint": "eslint --ext=js,mjs .",
910
"pretest": "npm run lint",
1011
"test": "npm run tests-only",
@@ -41,8 +42,14 @@
4142
"@ljharb/eslint-config": "^21.1.1",
4243
"eslint": "=8.8.0",
4344
"hash-test-vectors": "^1.3.2",
45+
"npmignore": "^0.3.1",
4446
"tape": "^5.9.0"
4547
},
48+
"publishConfig": {
49+
"ignore": [
50+
".github/workflows"
51+
]
52+
},
4653
"engines": {
4754
"node": ">= 0.8"
4855
}

0 commit comments

Comments
 (0)