fix: add --json option in pnpm config --help command (#6571)

This commit is contained in:
chlorine
2023-05-21 17:24:21 +08:00
committed by GitHub
parent 301b8e2da0
commit 78e839291d
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-config": patch
---
Add `--json` option in `pnpm config --help` command

View File

@@ -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',
],
})
}