react-native/react-native-git-upgrade
Nick Graef b4a8630ea5 ignore babelrc in git-upgrade (#20790)
Summary:
Per [this comment on the issue](https://github.com/facebook/react-native/issues/20710#issuecomment-414631827):

> Babel by default tries to find .babelrc files to configure itself, and once it finds the one from the RN app (which links to the RN preset that only works on Babel 7) it fails.
> The easiest patch to fix this issue is to add babelrc: false to the babel-register method, so Babel does not read any additional .babelrc file.

Fixes #20710
Pull Request resolved: https://github.com/facebook/react-native/pull/20790

Differential Revision: D9458502

Pulled By: hramos

fbshipit-source-id: 3a0ed7261322fdd9e0c0840f8a3944974f38b233
2018-08-22 12:31:19 -07:00
..
README.md Fix documentation links 2018-01-09 15:46:47 -08:00
checks.js Prettier the rest of ReactNative 2018-05-11 13:52:30 -07:00
cli.js ignore babelrc in git-upgrade (#20790) 2018-08-22 12:31:19 -07:00
cliEntry.js Prettier the rest of ReactNative 2018-05-11 13:52:30 -07:00
index.js Prettier files with shebang 2018-05-11 13:52:30 -07:00
package.json Update to MIT license 2018-02-16 18:31:53 -08:00
yarn.js Prettier the rest of ReactNative 2018-05-11 13:52:30 -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