Skip to content

Commit d6f7699

Browse files
committed
Add "files" whitelists to package.json
1 parent 9518bd4 commit d6f7699

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

global-cli/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "create-react-app",
33
"version": "1.0.0",
4+
"files": [
5+
"index.js"
6+
],
47
"bin": {
58
"create-react-app": "index.js"
69
},

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66
"build": "node scripts/build.js",
77
"create-react-app": "node global-cli/index.js --scripts-version \"$PWD/`npm pack`\""
88
},
9+
"files": [
10+
"LICENSE",
11+
"PATENTS",
12+
".eslintrc",
13+
"bin",
14+
"scripts",
15+
"src",
16+
"webpack.config.dev.js",
17+
"webpack.config.prod.js"
18+
],
919
"bin": {
1020
"start-react-app": "./bin/start-react-app.js",
1121
"build-react-app": "./bin/build-react-app.js",

0 commit comments

Comments
 (0)