Skip to content

Commit d06a8dc

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent d171f96 commit d06a8dc

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
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

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

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"module"
1818
],
1919
"scripts": {
20+
"prepack": "npmignore --auto --commentLines=autogenerated",
2021
"prepublishOnly": "safe-publish-latest && cp node_modules/is-core-module/core.json ./lib/ ||:",
2122
"prepublish": "not-in-publish || npm run prepublishOnly",
2223
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
@@ -38,6 +39,7 @@
3839
"in-publish": "^2.0.1",
3940
"mkdirp": "^0.5.5",
4041
"mv": "^2.1.1",
42+
"npmignore": "^0.3.0",
4143
"object-keys": "^1.1.1",
4244
"rimraf": "^2.7.1",
4345
"safe-publish-latest": "^2.0.0",
@@ -58,5 +60,11 @@
5860
"is-core-module": "^2.9.0",
5961
"path-parse": "^1.0.7",
6062
"supports-preserve-symlinks-flag": "^1.0.0"
63+
},
64+
"publishConfig": {
65+
"ignore": [
66+
".github/workflows",
67+
"appveyor.yml"
68+
]
6169
}
6270
}

0 commit comments

Comments
 (0)