When a new release of react-native is out on npm, do the following:
-
Clone the repo, or pull the latest
masterif you have it already cloned. -
Run
git config diff.nodiff.command true.
This is a setting that, in combination with the .gitattributes file, tells the scripts to not pay attention to some files that don't need to be in the diffs, like the root .gitignore of this repo (not the RnDiffApp project).
- Execute the main script.
./new-release.sh <new-release>So for example, if the new release is 0.79.2, just run:
./new-release.sh 0.79.2- Checkout
old/masterand pull. - Run
./new-version.sh <new-release>.
This is because we still maintain the old way of rn-diff, for people with the old version of react-native-cli. So if you do the extra credits, first of all you are a good person. Second, remember to tell aaaaall your friends, to uninstall react-native-cli and install the latest @react-native-community/cli.
Thanks for helping to make purge more complete :D