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: libs/commands/changed/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ Unlike `lerna ls`, however, `lerna changed` **does not** support [filter options
34
34
`lerna changed` supports the following options of [`lerna version`](https://github.com/lerna/lerna/tree/main/libs/commands/version#options) (the others are irrelevant):
describe: "Detect currently prereleased packages that would change to a non-prerelease version.",
21
21
// type must remain ambiguous because it is overloaded (boolean _or_ string _or_ array)
22
22
},
23
+
"force-conventional-graduate": {
24
+
describe:
25
+
"Always include all packages by specified by --conventional-graduate whether or not they are a prerelease or have changes since the previous version.",
26
+
type: "boolean",
27
+
},
23
28
"force-publish": {
24
29
describe: "Always include targeted packages when detecting changed packages, skipping default logic.",
25
30
// type must remain ambiguous because it is overloaded (boolean _or_ string _or_ array)
@@ -226,6 +227,17 @@ When run with this flag, `lerna version` will graduate the specified packages (c
226
227
227
228
> NOTE: when specifying packages, dependents of specified packages will be released, but will not be graduated.
228
229
230
+
### `--force-conventional-graduate`
231
+
232
+
```sh
233
+
lerna version --conventional-commits --conventional-graduate=package-2,package-4 --force-conventional-graduate
234
+
235
+
# force all prerelease packages to be graduated and updated if not a prerelease or having no change
236
+
lerna version --conventional-commits --conventional-graduate --force-conventional-graduate
237
+
```
238
+
239
+
When run with this flag, `lerna version` will graduate all packages specified by `--conventional-graduate`. Non-prerelease packages will not be ignored as it would be the case without the flag. In combination with single version mode this can be used to force all specified packages to be updated to a single version despite having no change or being a non-prerelease version. It works similar to `--force-publish` but is not ignored when `--conventional-commits` and `--conventional-graduate` are enabled. This flag is only applicable when having `--conventional-graduate` set, otherwise the option is ignored.
describe: "Version currently prereleased packages to a non-prerelease version.",
56
56
// type must remain ambiguous because it is overloaded (boolean _or_ string _or_ array)
57
57
},
58
+
"force-conventional-graduate": {
59
+
describe:
60
+
"Forces all packages specified by --conventional-graduate to bump their version whether or not they are a prerelease or have changes since the previous version.",
61
+
type: "boolean",
62
+
},
58
63
"conventional-prerelease": {
59
64
describe: "Version changed packages as prereleases when using --conventional-commits.",
60
65
// type must remain ambiguous because it is overloaded (boolean _or_ string _or_ array)
it("always includes all nodes targeted by --conventional-graduate = pkg despite having no prerelease version when having -froce-convention-graduate set",()=>{
it("always includes all nodes targeted by --conventional-graduate = * despite having no prerelease version when having -froce-convention-graduate set",()=>{
"description": "Detect currently prereleased packages that would change to a non-prerelease version. Relevant for `lerna changed` and `lerna version`."
1754
1760
},
1761
+
"forceConventionalGraduate": {
1762
+
"type": "boolean",
1763
+
"description": "Forces all packages specified by --conventional-graduate to bump their version whether or not they are a prerelease or have changes since the previous version. Relevant for `lerna changed` and `lerna version`."
1764
+
},
1755
1765
"forceLocal": {
1756
1766
"type": "boolean",
1757
1767
"description": "During `lerna bootstrap` and `lerna link`, when true, force local sibling links regardless of version range match."
0 commit comments