Skip to content

Commit

Permalink
fix: remove unused --save option for set resolution command
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
akwodkiewicz committed Nov 1, 2023
1 parent 32979f3 commit 7fb65d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .yarn/versions/3bcde5b8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
releases:
"@yarnpkg/plugin-essentials": patch

declined:
- "@yarnpkg/plugin-interactive-tools"
- "@yarnpkg/plugin-typescript"
- "@yarnpkg/cli"
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class SetResolutionCommand extends BaseCommand {
details: `
This command updates the resolution table so that \`descriptor\` is resolved by \`resolution\`.
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.
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.
Note that no attempt is made at validating that \`resolution\` is a valid resolution entry for \`descriptor\`.
`,
Expand All @@ -24,10 +24,6 @@ export default class SetResolutionCommand extends BaseCommand {
]],
});

save = Option.Boolean(`-s,--save`, false, {
description: `Persist the resolution inside the top-level manifest`,
});

descriptor = Option.String();
resolution = Option.String();

Expand Down

0 comments on commit 7fb65d9

Please sign in to comment.