Skip to content

Commit f0490d6

Browse files
Martin KonicekFacebook Github Bot
authored andcommitted
Git upgrade: Tweak README, bump version, fix a bug
Reviewed By: mkonicek Differential Revision: D4276644 Ninja: OSS only fbshipit-source-id: 7bed331770d06addedf51e2ed09d0b9bde5b45ad
1 parent f4cde4f commit f0490d6

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

react-native-git-upgrade/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# React Native Git Upgrade
22

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

55
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 situation.
66

77
## Usage
88

99
See the [Upgrading docs](http://facebook.github.io/react-native/releases/next/docs/upgrading.html) on the React Native website.
10+
11+
Simplest use case:
12+
13+
```
14+
$ npm install -g react-native-git-upgrade
15+
$ cd MyReactNativeApp
16+
$ react-native-git-upgrade
17+
```

react-native-git-upgrade/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-git-upgrade",
3-
"version": "0.1.0",
3+
"version": "0.2.2",
44
"license": "BSD-3-Clause",
55
"description": "The React Native upgrade tool",
66
"main": "cli.js",

react-native-git-upgrade/yarn.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99
'use strict';
1010

11+
const execSync = require('child_process').execSync;
1112
const fs = require('fs');
1213
const path = require('path');
1314
const semver = require('semver');

0 commit comments

Comments
 (0)