Skip to content

Commit

Permalink
fix: add --json option in pnpm config --help command (#6571)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvqq committed May 21, 2023
1 parent 301b8e2 commit 78e8392
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-coats-sin.md
@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-config": patch
---

Add `--json` option in `pnpm config --help` command
5 changes: 5 additions & 0 deletions config/plugin-commands-config/src/config.ts
Expand Up @@ -57,6 +57,10 @@ export function help () {
description: 'When set to "project", the .npmrc file at the nearest package.json will be used',
name: '--location <project|global>',
},
{
description: 'Show all the config settings in JSON format',
name: '--json',
},
],
},
],
Expand All @@ -66,6 +70,7 @@ export function help () {
'pnpm config get <key>',
'pnpm config delete <key>',
'pnpm config list',
'pnpm config list --json',
],
})
}
Expand Down

0 comments on commit 78e8392

Please sign in to comment.