flow-upgrade 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,30 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
A utility for upgrading your codebase to the latest version of Flow.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Install using `yarn add flow-upgrade`. We expect `prettier` to be installed as a [peer dependency](https://docs.npmjs.com/cli/v8/configuring-npm/package-json#peerdependencies) wherever you are running `flow-upgrade`.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
You can then run:
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
yarn
|
|
10
|
+
yarn run flow-upgrade <current flow version> <target flow version>
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
You may also use [`npx`](https://www.npmjs.com/package/npx):
|
|
14
14
|
|
|
15
15
|
```
|
|
16
|
-
|
|
17
|
-
flow-upgrade
|
|
16
|
+
npx flow-upgrade <current flow version> <target flow version>
|
|
18
17
|
```
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
[`npx`]: https://www.npmjs.com/package/npx
|
|
19
|
+
We also supply the `flow-codemod` binary:
|
|
23
20
|
|
|
24
21
|
```
|
|
25
|
-
|
|
22
|
+
yarn run flow-codemod <codemod name>
|
|
26
23
|
```
|
|
27
24
|
|
|
28
|
-
|
|
25
|
+
If you just want to run a codemod without specifying Flow versions.
|
|
29
26
|
|
|
30
27
|
## Options
|
|
31
28
|
|