Skip to content

Commit 82111f8

Browse files
committed
chore: update readme
* Added a tip for scripts * Fixed rnbv url
1 parent 0c5b789 commit 82111f8

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@ package.json: 1.10.6 -> 1.10.7
2828
The plugin updates and write the output listed files, and it's up to you to
2929
commit them.
3030

31+
32+
Tip: I usually create a script entry for the command, since it tends to be long:
33+
34+
```json
35+
{
36+
"scripts": {
37+
"bump": "npx react-native bump-version --skip-semver-for android"
38+
}
39+
}
40+
```
41+
42+
That way you can invoke it like: `yarn bump --type patch`
43+
44+
3145
## Flags
3246

3347
Just ask for help:
@@ -77,7 +91,7 @@ will break.
7791
7892
#### Use MARKETING_VERSION in `Info.plist`
7993
80-
I've choose to remove the `Info.plist` manipulation as it was not needed
94+
I've choosen to remove the `Info.plist` manipulation as it was not needed
8195
if it uses the `MARKETING_VERSION` env var, so be sure that your project/xcode is updated and that
8296
the `Info.plist` file has `MARKETING_VERSION` instead of SemVer string:
8397
@@ -90,6 +104,6 @@ the `Info.plist` file has `MARKETING_VERSION` instead of SemVer string:
90104
91105
I tried to find a tool that did this before starting it:
92106
93-
* [rnbv](https://github.com/llotheo/react-native-cli-bump-version) inspired my initial sources
107+
* [rnbv](https://github.com/llotheo/react-native-bump-version) inspired my initial sources
94108
* [react-native-version](https://github.com/stovmascript/react-native-version) actually does what I was
95109
looking for, but I already had written the tool, so I just published it anyway.

0 commit comments

Comments
 (0)