From 439aaf7f612a8c5a9a0713f6de6e487891bee964 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Victor=20Mour=C3=A3o?=
<35748259+AcidTr@users.noreply.github.com>
Date: Fri, 15 Jul 2022 12:33:12 -0300
Subject: [PATCH] Fix missing --patch flag
This change fixes the missing flag in the first example. If you just run yarn version it will only plot the version, not change it.
Update the note from the end of the first example to the --new-version flag where it is related to.
---
lang/en/docs/cli/version.md | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/lang/en/docs/cli/version.md b/lang/en/docs/cli/version.md
index eefb28e33..ce0009ead 100644
--- a/lang/en/docs/cli/version.md
+++ b/lang/en/docs/cli/version.md
@@ -23,10 +23,10 @@ For example, starting with this package.json `package.json`:
}
```
-When we run the `yarn version` command:
+When we run the `yarn version --patch` command:
```sh
-yarn version
+yarn version --patch
```
```
@@ -46,9 +46,6 @@ We will get this updated `package.json`:
}
```
-> **Note:** The new version you enter must be a valid
-> [SemVer]({{url_base}}/docs/dependency-versions#toc-semantic-versioning)
-> version.
#### Git tags
@@ -146,6 +143,10 @@ version.
Creates a new version specified by ``.
+> **Note:** The `` you enter must be a valid
+> [SemVer]({{url_base}}/docs/dependency-versions#toc-semantic-versioning)
+> version.
+
##### `yarn version --major`
##### `yarn version --minor`