feat: uni is an alias of uninstall

close #4302
This commit is contained in:
Zoltan Kochan
2022-02-14 02:45:40 +02:00
parent 8d3255515b
commit e96fe4d9e1
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-installation": minor
---
`pnpm uni` is an alias of `pnpm uninstall`.

View File

@@ -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)