Skip to content

Commit 4e183d7

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

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ yarn.lock
99

1010
# symlinked file used in tests
1111
test/resolver/symlinked/_/node_modules/package
12+
13+
.npmignore

.npmignore

-14
This file was deleted.

package.json

+8
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"module"
3030
],
3131
"scripts": {
32+
"prepack": "npmignore --auto --commentLines=autogenerated",
3233
"prepublishOnly": "safe-publish-latest",
3334
"prepublish": "not-in-publish || npm run prepublishOnly",
3435
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
@@ -50,6 +51,7 @@
5051
"in-publish": "^2.0.1",
5152
"mkdirp": "^0.5.5",
5253
"mv": "^2.1.1",
54+
"npmignore": "^0.3.0",
5355
"object-keys": "^1.1.1",
5456
"rimraf": "^2.7.1",
5557
"safe-publish-latest": "^2.0.0",
@@ -70,5 +72,11 @@
7072
"is-core-module": "^2.9.0",
7173
"path-parse": "^1.0.7",
7274
"supports-preserve-symlinks-flag": "^1.0.0"
75+
},
76+
"publishConfig": {
77+
"ignore": [
78+
".github/workflows",
79+
"appveyor.yml"
80+
]
7381
}
7482
}

0 commit comments

Comments
 (0)