diff --git a/.changeset/fifty-ears-sleep.md b/.changeset/fifty-ears-sleep.md new file mode 100644 index 0000000000..21e99b274e --- /dev/null +++ b/.changeset/fifty-ears-sleep.md @@ -0,0 +1,5 @@ +--- +"@pnpm/plugin-commands-installation": minor +--- + +`pnpm uni` is an alias of `pnpm uninstall`. diff --git a/packages/plugin-commands-installation/src/remove.ts b/packages/plugin-commands-installation/src/remove.ts index e468569abd..f1db16bbea 100644 --- a/packages/plugin-commands-installation/src/remove.ts +++ b/packages/plugin-commands-installation/src/remove.ts @@ -119,7 +119,7 @@ For options that may be used with `-r`, see "pnpm help recursive"', // Unlike npm, pnpm does not treat "r" as an alias of "remove". // This way we avoid the confusion about whether "pnpm r" means remove, run, or recursive. -export const commandNames = ['remove', 'uninstall', 'rm', 'un'] +export const commandNames = ['remove', 'uninstall', 'rm', 'un', 'uni'] export const completion: CompletionFunc = async (cliOpts, params) => { return readDepNameCompletions(cliOpts.dir as string)