1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-29 04:23:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Merge pull request #94 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

View File

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