Skip to content

Commit 6ad2312

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent f32d826 commit 6ad2312

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ npm-shrinkwrap.json
88
package-lock.json
99
yarn-error.log
1010
yarn.lock
11+
12+
.npmignore

.npmignore

-10
This file was deleted.

package.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"main": "lib/index.js",
1919
"scripts": {
20+
"prepack": "npmignore --auto --commentLines=autogenerated",
2021
"build": "rimraf lib && babel src --out-dir lib --copy-files",
2122
"create": "node ./scripts/create-rule",
2223
"flow": "flow",
@@ -56,6 +57,7 @@
5657
"jscodeshift": "^0.7.1",
5758
"markdown-magic": "^2.6.1",
5859
"minimist": "^1.2.6",
60+
"npmignore": "^0.3.0",
5961
"object.assign": "^4.1.2",
6062
"rimraf": "^3.0.2",
6163
"safe-publish-latest": "^2.0.0",
@@ -98,10 +100,16 @@
98100
],
99101
"testEnvironment": "node"
100102
},
101-
"greenkeeper": {
103+
"publishConfig": {
102104
"ignore": [
103-
"jest",
104-
"babel-jest"
105+
"!lib",
106+
".github/workflows",
107+
".flowconfig",
108+
"/src",
109+
"/reports",
110+
"/flow",
111+
"scripts/",
112+
"CONTRIBUTING.md"
105113
]
106114
}
107115
}

0 commit comments

Comments
 (0)