Skip to content

Commit

Permalink
fix: add global option in pnpm link --help (#5461)
Browse files Browse the repository at this point in the history
Co-authored-by: Zoltan Kochan <z@kochan.io>
  • Loading branch information
lvqq and zkochan committed Oct 9, 2022
1 parent e072256 commit 3277188
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/famous-rocks-yawn.md
@@ -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).
9 changes: 7 additions & 2 deletions packages/plugin-commands-installation/src/link.ts
Expand Up @@ -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>',
],
})
}
Expand Down

0 comments on commit 3277188

Please sign in to comment.