1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Merge pull request from reactnativecn/sunnylqm-patch-2

support 0.42
This commit is contained in:
DengYun 2017-03-14 10:28:01 +08:00 committed by GitHub
commit 7db4213bfd

@ -382,10 +382,17 @@ export const commands = {
let defaultConfig;
if (major >= 0 && minor >= 33) {
defaultConfig= Config.get(
path.resolve('node_modules/react-native/local-cli'),
require(path.resolve('node_modules/react-native/local-cli/default.config')),
path.resolve('node_modules/react-native/packager/rn-cli.config.js'));
if (minor >= 42) {
defaultConfig= Config.get(
path.resolve('node_modules/react-native/local-cli'),
require(path.resolve('node_modules/react-native/local-cli/core/default.config')),
path.resolve('node_modules/react-native/packager/rn-cli.config.js'));
} else {
defaultConfig= Config.get(
path.resolve('node_modules/react-native/local-cli'),
require(path.resolve('node_modules/react-native/local-cli/default.config')),
path.resolve('node_modules/react-native/packager/rn-cli.config.js'));
}
} else {
defaultConfig= Config.get(path.resolve('node_modules/react-native/local-cli'), require(path.resolve('node_modules/react-native/local-cli/default.config')));
}