Skip to content

Commit f03b524

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 4f8b57c commit f03b524

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
@@ -20,3 +20,5 @@ node_modules
2020
npm-shrinkwrap.json
2121
package-lock.json
2222
yarn.lock
23+
24+
.npmignore

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@
2929
"@ljharb/eslint-config": "^21.0.0",
3030
"covert": "^1.1.1",
3131
"eslint": "=8.8.0",
32+
"npmignore": "^0.3.0",
3233
"tape": "^5.5.3"
3334
},
3435
"license": "MIT",
3536
"scripts": {
37+
"prepack": "npmignore --auto --commentLines=autogenerated",
3638
"pretest": "npm run lint",
3739
"test": "npm run tests-only",
3840
"posttest": "npm run coverage -- --quiet",
@@ -58,5 +60,10 @@
5860
"iphone/6.0..latest",
5961
"android-browser/4.2..latest"
6062
]
63+
},
64+
"publishConfig": {
65+
"ignore": [
66+
".github/workflows"
67+
]
6168
}
6269
}

0 commit comments

Comments
 (0)