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

support 0.42

This commit is contained in:
sunnylqm 2017-03-14 10:24:02 +08:00 committed by GitHub
parent 66b535b55c
commit c5b3db6c48

View File

@ -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')));
}