Skip to content

Commit 463d7bb

Browse files
thymikeedratwas
authored andcommitted
fix: re-export findPlugins under cli/core for backcompat with RN 0.59 (react-native-community#224)
1 parent 8eb39dc commit 463d7bb

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

packages/cli/src/cliEntry.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {getCommands} from './commands';
1717
import init from './commands/init/init';
1818
import assertRequiredOptions from './tools/assertRequiredOptions';
1919
import logger from './tools/logger';
20+
import findPlugins from './tools/findPlugins';
2021
import pkgJson from '../package.json';
2122

2223
commander
@@ -202,4 +203,4 @@ export default {
202203
init,
203204
};
204205

205-
// export { run, init };
206+
export {run, init, findPlugins};

packages/cli/src/core/findPlugins.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* This file exists only because RN 0.59.0 stable consumes it and we don't want
3+
* to introduce a breaking change.
4+
* See consumer: https://github.com/facebook/react-native/blob/7c73f2bb5a0f97902f469bc043681e79e161aac3/jest/hasteImpl.js#L28
5+
* @todo: remove in 2.0
6+
*
7+
* @flow
8+
*/
9+
10+
import findPlugins from '../tools/findPlugins';
11+
12+
export default findPlugins;

0 commit comments

Comments
 (0)