react-native-macos/react-native-git-upgrade
Mike Grabowski 1af390be19 Update references to the CLI (#23052)
Summary:
This updates React Native to use latest CLI. We also create Metro configuration, because CLI looks for React Native in "node_modules" by default. Since we are running React Native from source, it will fail to find required files.

To avoid hacky logic to detect if we are running from source backed into the CLI, I decided to leverage the Metro configuration instead.
Pull Request resolved: https://github.com/facebook/react-native/pull/23052

Reviewed By: rickhanlonii

Differential Revision: D13719938

Pulled By: cpojer

fbshipit-source-id: 1f40a40b3cdbb07ccd42daf75feb457556d3e40f
2019-01-21 09:13:08 -08:00
..
README.md Fix documentation links 2018-01-09 15:46:47 -08:00
checks.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
cli.js Remove references to `local-cli` 2018-12-07 07:49:18 -08:00
cliEntry.js Update references to the CLI (#23052) 2019-01-21 09:13:08 -08:00
index.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
package.json Update to MIT license 2018-02-16 18:31:53 -08:00
yarn.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00

README.md

React Native Git Upgrade

This tool makes upgrading your apps to a new version of React Native easier than the stock react-native upgrade command.

It uses Git under the hood to automatically resolve merge conflicts in project templates (native iOS and Android files, .flowconfig etc.). These conflicts happen when a new React Native version introduces changes to those files and you have local changes in those files too, which is quite common.

Usage

See the Upgrading docs on the React Native website.

Basic usage:

$ npm install -g react-native-git-upgrade
$ cd MyReactNativeApp
$ react-native-git-upgrade