Fix React Native calling private CLI APIs

This commit is contained in:
Mike Grabowski 2019-02-13 16:47:52 +01:00
parent 9f96606d32
commit 1f099672be
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ if (REACT_NATIVE_CI) {
function getPlugins() {
try {
// @todo do not rely on private files
const findPlugins = require('@react-native-community/cli/build/core/findPlugins');
const findPlugins = require('@react-native-community/cli/build/core/findPlugins')
.default;
return findPlugins(path.resolve(__dirname, pluginsPath));
} catch (e) {