From f5dae7dd38dfd495eb2073470a3f61d7c0fc487d Mon Sep 17 00:00:00 2001 From: await-ovo <13152410380@163.com> Date: Fri, 9 Dec 2022 12:31:51 +0800 Subject: [PATCH 1/2] chore(plugin-commands-publishing): output --json option in help info --- releasing/plugin-commands-publishing/src/publish.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 ', From f3fb1ad74925acd246e5da7eaabf048aac8fd009 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Fri, 9 Dec 2022 22:05:51 +0200 Subject: [PATCH 2/2] docs: add changesets --- .changeset/four-ducks-try.md | 6 ++++++ 1 file changed, 6 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).