Skip to content

fix: re-export findPlugins under cli/core for backcompat with RN 0.59 #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;