Merge pull request #94 from reactnativecn/sunnylqm-patch-2
support 0.42
This commit is contained in:
commit
7db4213bfd
@ -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')));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user