Uses findMetroConfig and fetchMetroConfig in the internal RN cli

Reviewed By: davidaurelio

Differential Revision: D6819226

fbshipit-source-id: 6436855cc5dce9ce7922d89df99c3cb90abb095e
This commit is contained in:
Maël Nison 2018-02-02 04:35:11 -08:00 committed by Facebook Github Bot
parent d99ba70c49
commit 752427b7b8
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ const Config = {
return configPath ? this.load(configPath, startDir) : {...Config.DEFAULT};
},
getProjectPath,
getProjectRoots,
load(configFile: string): ConfigT {
return MetroConfig.load(configFile, Config.DEFAULT);
},