mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Add --config option to CLI to allow passing a path to an rn-cli.config.js
Summary: Currently we just try to resolve a rn-cli.config.js file by walking up the tree from node_modules/react-native. In non-standard uses of RN, when your copy of RN may not live within node_modules, it's impossible to use rn-cli.config.js. This PR adds a "config" flag to the cli that let's you pass in a path to rn-cli.config.js. cc ide Closes https://github.com/facebook/react-native/pull/7883 Differential Revision: D3382823 Pulled By: bestander fbshipit-source-id: b946f3bb355050fc2fe99273d0e99e441dbed111
This commit is contained in:
committed by
Facebook Github Bot 5
parent
3f504ec147
commit
757ab0b936
@@ -148,6 +148,7 @@
|
||||
"connect": "^2.8.3",
|
||||
"core-js": "^2.2.2",
|
||||
"debug": "^2.2.0",
|
||||
"denodeify": "^1.2.1",
|
||||
"event-target-shim": "^1.0.5",
|
||||
"fbjs": "^0.8.3",
|
||||
"fbjs-scripts": "^0.7.0",
|
||||
@@ -163,6 +164,8 @@
|
||||
"jstransform": "^11.0.3",
|
||||
"lodash": "^3.10.1",
|
||||
"mime": "^1.3.4",
|
||||
"mime-types": "2.1.11",
|
||||
"minimist": "^1.2.0",
|
||||
"mkdirp": "^0.5.1",
|
||||
"module-deps": "^3.9.1",
|
||||
"node-fetch": "^1.3.3",
|
||||
@@ -183,6 +186,7 @@
|
||||
"stacktrace-parser": "^0.1.3",
|
||||
"temp": "0.8.3",
|
||||
"uglify-js": "^2.6.2",
|
||||
"whatwg-fetch": "^1.0.0",
|
||||
"wordwrap": "^1.0.0",
|
||||
"worker-farm": "^1.3.1",
|
||||
"ws": "^1.1.0",
|
||||
@@ -190,10 +194,7 @@
|
||||
"xmldoc": "^0.4.0",
|
||||
"yargs": "^3.24.0",
|
||||
"yeoman-environment": "1.5.3",
|
||||
"yeoman-generator": "0.21.2",
|
||||
"mime-types": "2.1.11",
|
||||
"whatwg-fetch": "^1.0.0",
|
||||
"denodeify": "^1.2.1"
|
||||
"yeoman-generator": "0.21.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^6.0.0",
|
||||
|
||||
Reference in New Issue
Block a user