From 5d8f84520c82862d40037119dbce50fa0c02d4e2 Mon Sep 17 00:00:00 2001 From: await-ovo <13152410380@163.com> Date: Sat, 10 Dec 2022 04:21:47 +0800 Subject: [PATCH] fix(plugin-commands-publishing): output --json option in help info (#5773) --- .changeset/four-ducks-try.md | 6 ++++++ releasing/plugin-commands-publishing/src/publish.ts | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/four-ducks-try.md diff --git a/.changeset/four-ducks-try.md b/.changeset/four-ducks-try.md new file mode 100644 index 00000000000..f0cbbd52055 --- /dev/null +++ b/.changeset/four-ducks-try.md @@ -0,0 +1,6 @@ +--- +"@pnpm/plugin-commands-publishing": patch +"pnpm": patch +--- + +Added `--json` to the `pnpm publish --help` output [#5773](https://github.com/pnpm/pnpm/pull/5773). diff --git a/releasing/plugin-commands-publishing/src/publish.ts b/releasing/plugin-commands-publishing/src/publish.ts index 70666ad6131..5d10fa2df1f 100644 --- a/releasing/plugin-commands-publishing/src/publish.ts +++ b/releasing/plugin-commands-publishing/src/publish.ts @@ -65,6 +65,10 @@ export function help () { description: 'Does everything a publish would do except actually publishing to the registry', name: '--dry-run', }, + { + description: 'Show information in JSON format', + name: '--json', + }, { description: 'Registers the published package with the given tag. By default, the "latest" tag is used.', name: '--tag ',