You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+50-13Lines changed: 50 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ Seamlessly shadows the behaviour of [`npm version`](https://docs.npmjs.com/cli/v
7
7
### Setup
8
8
9
9
```bash
10
-
npm install react-native-version --save-dev
10
+
$ npm install react-native-version --save-dev
11
11
# or
12
-
yarn add react-native-version --dev
12
+
$ yarn add react-native-version --dev
13
13
```
14
14
15
15
Hook into the "version" or "postversion" npm script in your app's package.json:
@@ -38,17 +38,17 @@ react-native-version will then update your `android/` and `ios/` code. Depending
38
38
### Setup
39
39
40
40
```bash
41
-
npm install -g react-native-version
41
+
$ npm install -g react-native-version
42
42
# or
43
-
yarn global add react-native-version
43
+
$ yarn global add react-native-version
44
44
```
45
45
46
46
### Example usage
47
47
48
48
```bash
49
-
cd AwesomeProject/
50
-
npm version patch
51
-
react-native-version
49
+
$ cd AwesomeProject/
50
+
$ npm version patch
51
+
$ react-native-version
52
52
```
53
53
54
54
## Options
@@ -85,15 +85,15 @@ You can apply these options to the "version" or "postversion" script too. If for
85
85
The default behaviour is to version all React Native platforms. You can target specific platforms by passing a comma-separated list to the "--target" option, or by using the `RNV` environment variable:
86
86
87
87
```bash
88
-
RNV=android,ios npm version patch
88
+
$ RNV=android,ios npm version patch
89
89
# or
90
-
RNV=android,ios react-native-version
90
+
$ RNV=android,ios react-native-version
91
91
```
92
92
93
93
When using the CLI, you can even combine both methods and make your teammates rage :smiling_imp: :suspect::
0 commit comments