fix: add global option in pnpm link --help (#5461)

Co-authored-by: Zoltan Kochan <z@kochan.io>
This commit is contained in:
chlorine
2022-10-09 21:17:33 +08:00
committed by GitHub
parent e072256518
commit 3277188eba
2 changed files with 13 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/plugin-commands-installation": patch
"pnpm": patch
---
Add global option in `pnpm link --help` [#5461](https://github.com/pnpm/pnpm/pull/5461).

View File

@@ -64,14 +64,19 @@ export function help () {
list: [
...UNIVERSAL_OPTIONS,
{
description: 'Link package to/from global node_modules',
name: '--global',
shortAlias: '-g',
},
],
},
],
url: docsUrl('link'),
usages: [
'pnpm link (in package dir)',
'pnpm link <pkg>',
'pnpm link <dir>',
'pnpm link --global (in package dir)',
'pnpm link --global <pkg>',
],
})
}