support 0.42
This commit is contained in:
parent
66b535b55c
commit
c5b3db6c48
@ -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')));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user