Skip to content

Commit 35aec35

Browse files
committed
[meta] add npmignore
1 parent d528896 commit 35aec35

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ npm-debug.log
55
npm-shrinkwrap.json
66
package-lock.json
77
yarn.lock
8+
9+
.npmignore

.npmignore

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
tests/
1+
# Rules from: /Users/ljharb/Dropbox/git/browserify/sha.js.git/.gitignore
2+
node_modules
3+
npm-debug.log
4+
5+
# Only apps should have lockfiles
6+
npm-shrinkwrap.json
7+
package-lock.json
8+
yarn.lock
9+
10+
.npmignore
11+
12+
13+
# npmignore - autogenerated
14+
.github/workflows
15+
.github

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818
"encoding": "^0.1.13",
1919
"eslint": "=8.8.0",
2020
"hash-test-vectors": "^1.3.2",
21+
"npmignore": "^0.3.1",
2122
"tape": "^5.9.0",
2223
"typedarray": "^0.0.7"
2324
},
2425
"bin": "./bin.js",
2526
"scripts": {
27+
"prepack": "npmignore --auto --commentLines=autogenerated",
2628
"lint": "eslint --ext=js,mjs .",
2729
"pretest": "npm run lint",
2830
"test": "npm run tests-only",
@@ -43,5 +45,11 @@
4345
"commitLimit": false,
4446
"backfillLimit": false,
4547
"hideCredit": true
48+
},
49+
"publishConfig": {
50+
"ignore": [
51+
".github/workflows",
52+
".github"
53+
]
4654
}
4755
}

0 commit comments

Comments
 (0)