Skip to content

Commit 7fb65d9

Browse files
committed
fix: remove unused --save option for set resolution command
The option was never implemented in berry, but it's mentioned in the docs as well as in the CLI output. See #2202 I don't have the expertise to actually implement the flag, so the second best thing to do here is to remove it, so that people are no longer mislead.
1 parent 32979f3 commit 7fb65d9

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.yarn/versions/3bcde5b8.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
releases:
2+
"@yarnpkg/plugin-essentials": patch
3+
4+
declined:
5+
- "@yarnpkg/plugin-interactive-tools"
6+
- "@yarnpkg/plugin-typescript"
7+
- "@yarnpkg/cli"

packages/plugin-essentials/sources/commands/set/resolution.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class SetResolutionCommand extends BaseCommand {
1414
details: `
1515
This command updates the resolution table so that \`descriptor\` is resolved by \`resolution\`.
1616
17-
Note that by default this command only affect the current resolution table - meaning that this "manual override" will disappear if you remove the lockfile, or if the package disappear from the table. If you wish to make the enforced resolution persist whatever happens, add the \`-s,--save\` flag which will also edit the \`resolutions\` field from your top-level manifest.
17+
Note that by default this command only affect the current resolution table - meaning that this "manual override" will disappear if you remove the lockfile, or if the package disappear from the table. If you wish to make the enforced resolution persist whatever happens, edit the \`resolutions\` field in your top-level manifest.
1818
1919
Note that no attempt is made at validating that \`resolution\` is a valid resolution entry for \`descriptor\`.
2020
`,
@@ -24,10 +24,6 @@ export default class SetResolutionCommand extends BaseCommand {
2424
]],
2525
});
2626

27-
save = Option.Boolean(`-s,--save`, false, {
28-
description: `Persist the resolution inside the top-level manifest`,
29-
});
30-
3127
descriptor = Option.String();
3228
resolution = Option.String();
3329

0 commit comments

Comments
 (0)