mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-27 10:30:58 -04:00
fix: add --json option in pnpm config --help command (#6571)
This commit is contained in:
5
.changeset/lucky-coats-sin.md
Normal file
5
.changeset/lucky-coats-sin.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-config": patch
|
||||
---
|
||||
|
||||
Add `--json` option in `pnpm config --help` command
|
||||
@@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
@@ -66,6 +70,7 @@ export function help () {
|
||||
'pnpm config get <key>',
|
||||
'pnpm config delete <key>',
|
||||
'pnpm config list',
|
||||
'pnpm config list --json',
|
||||
],
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user