Skip to content

Commit 78e8392

Browse files
authored
fix: add --json option in pnpm config --help command (pnpm#6571)
1 parent 301b8e2 commit 78e8392

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/lucky-coats-sin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@pnpm/plugin-commands-config": patch
3+
---
4+
5+
Add `--json` option in `pnpm config --help` command

config/plugin-commands-config/src/config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ export function help () {
5757
description: 'When set to "project", the .npmrc file at the nearest package.json will be used',
5858
name: '--location <project|global>',
5959
},
60+
{
61+
description: 'Show all the config settings in JSON format',
62+
name: '--json',
63+
},
6064
],
6165
},
6266
],
@@ -66,6 +70,7 @@ export function help () {
6670
'pnpm config get <key>',
6771
'pnpm config delete <key>',
6872
'pnpm config list',
73+
'pnpm config list --json',
6974
],
7075
})
7176
}

0 commit comments

Comments
 (0)