Fix React Native calling private CLI APIs
This commit is contained in:
parent
9f96606d32
commit
1f099672be
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue