Skip to content

Commit 3e633b0

Browse files
grabboufacebook-github-bot
authored andcommitted
Extract out CLI (#22337)
Summary: Continuation of facebook/react-native#22174 with an exception that `local-cli` folder is left in React Native repository to keep Facebook internal and React Native calls still working. Separate strategy should be developed to remove all uses of `local-cli` in favor of dedicated utilities. Pull Request resolved: facebook/react-native#22337 Reviewed By: TheSavior Differential Revision: D13172898 Pulled By: cpojer fbshipit-source-id: 0217867f9944648307475ebe629eb729da7bfaaf
1 parent 9660e7f commit 3e633b0

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

bundle/buildBundle.js

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* LICENSE file in the root directory of this source tree.
66
*
77
* @format
8-
* @flow
98
*/
109

1110
'use strict';

cli.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,7 @@
77
* @format
88
*/
99

10-
'use strict';
11-
12-
// gracefulify() has to be called before anything else runs
13-
require('graceful-fs').gracefulify(require('fs'));
14-
15-
// This file must be able to run in node 0.12 without babel so we can show that
16-
// it is not supported. This is why the rest of the cli code is in `cliEntry.js`.
17-
require('./server/checkNodeVersion')();
18-
19-
require('../setupBabel')();
20-
21-
var cliEntry = require('./cliEntry');
10+
var cliEntry = require('react-native-local-cli');
2211

2312
if (require.main === module) {
2413
cliEntry.run();

server/runServer.js

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @flow
87
* @format
98
*/
109

0 commit comments

Comments
 (0)