Skip to content

Commit 2e2007a

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 18cadf9 commit 2e2007a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ node_modules
66
npm-shrinkwrap.json
77
package-lock.json
88
yarn.lock
9+
10+
.npmignore

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"aud": "^2.0.1",
1414
"eslint": "=8.8.0",
1515
"in-publish": "^2.0.1",
16+
"npmignore": "^0.3.0",
1617
"safe-publish-latest": "^2.0.0",
1718
"tape": "^5.6.1"
1819
},
@@ -30,12 +31,18 @@
3031
"url": "http://github.com/substack/node-shell-quote.git"
3132
},
3233
"scripts": {
34+
"prepack": "npmignore --auto --commentLines=autogenerated",
3335
"prepublish": "not-in-publish || npm run prepublishOnly",
3436
"prepublishOnly": "safe-publish-latest",
3537
"lint": "eslint --ext=js,mjs .",
3638
"pretest": "npm run lint",
3739
"tests-only": "tape 'test/**/*.js'",
3840
"test": "npm run tests-only",
3941
"posttest": "aud --production"
42+
},
43+
"publishConfig": {
44+
"ignore": [
45+
".github/workflows"
46+
]
4047
}
4148
}

0 commit comments

Comments
 (0)