Skip to content

Commit 12cc602

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 1a245c6 commit 12cc602

3 files changed

Lines changed: 10 additions & 14 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ package-lock.json
99
# coverage data
1010
coverage/
1111
.nyc_output/
12+
13+
.npmignore

.npmignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@
5959
"falafel": "^2.2.4",
6060
"js-yaml": "^3.14.0",
6161
"npm-run-posix-or-windows": "^2.0.2",
62+
"npmignore": "^0.3.0",
6263
"safe-publish-latest": "^2.0.0",
6364
"tap": "^8.0.1",
6465
"tap-parser": "^3.0.5"
6566
},
6667
"scripts": {
68+
"prepack": "npmignore --auto --commentLines=autogenerated",
6769
"prepublishOnly": "safe-publish-latest",
6870
"prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly",
6971
"prelint:files": "git ls-files 2>/dev/null | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' || echo '*.md *.js test/*.js'",
@@ -106,5 +108,10 @@
106108
"email": "mail@substack.net",
107109
"url": "http://substack.net"
108110
},
109-
"license": "MIT"
111+
"license": "MIT",
112+
"publishConfig": {
113+
"ignore": [
114+
".github/workflows"
115+
]
116+
}
110117
}

0 commit comments

Comments
 (0)