diff --git a/packages/cli/src/cliEntry.js b/packages/cli/src/cliEntry.js index 9a4d6fe48..e29a0ecad 100644 --- a/packages/cli/src/cliEntry.js +++ b/packages/cli/src/cliEntry.js @@ -17,6 +17,7 @@ import {getCommands} from './commands'; import init from './commands/init/init'; import assertRequiredOptions from './tools/assertRequiredOptions'; import logger from './tools/logger'; +import findPlugins from './tools/findPlugins'; import pkgJson from '../package.json'; commander @@ -202,4 +203,4 @@ export default { init, }; -// export { run, init }; +export {run, init, findPlugins}; diff --git a/packages/cli/src/core/findPlugins.js b/packages/cli/src/core/findPlugins.js new file mode 100644 index 000000000..bfcc7e1ba --- /dev/null +++ b/packages/cli/src/core/findPlugins.js @@ -0,0 +1,12 @@ +/** + * This file exists only because RN 0.59.0 stable consumes it and we don't want + * to introduce a breaking change. + * See consumer: https://github.com/facebook/react-native/blob/7c73f2bb5a0f97902f469bc043681e79e161aac3/jest/hasteImpl.js#L28 + * @todo: remove in 2.0 + * + * @flow + */ + +import findPlugins from '../tools/findPlugins'; + +export default findPlugins;