From e96fe4d9e1682148ac4f634cd02db355d1db9325 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Mon, 14 Feb 2022 02:45:40 +0200 Subject: [PATCH] feat: uni is an alias of uninstall close #4302 --- .changeset/fifty-ears-sleep.md | 5 +++++ packages/plugin-commands-installation/src/remove.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/fifty-ears-sleep.md 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)