Skip to content

Commit

Permalink
fix: re-export findPlugins under cli/core for backcompat with RN 0.59 (
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee authored and grabbou committed Mar 12, 2019
1 parent a8bb073 commit 13383b9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/cliEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -202,4 +203,4 @@ export default {
init,
};

// export { run, init };
export {run, init, findPlugins};
12 changes: 12 additions & 0 deletions packages/cli/src/core/findPlugins.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 13383b9

Please sign in to comment.