From 5a2a59a37b7fb31e17414579b470402d3016e28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Thu, 24 Feb 2022 12:11:47 +0100 Subject: [PATCH] Fixed an issue with logging non-stringified Buffers in case of publish errors (#760) --- .changeset/chilly-swans-approve.md | 5 +++++ packages/cli/src/commands/publish/npm-utils.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/chilly-swans-approve.md diff --git a/.changeset/chilly-swans-approve.md b/.changeset/chilly-swans-approve.md new file mode 100644 index 000000000..df56edc69 --- /dev/null +++ b/.changeset/chilly-swans-approve.md @@ -0,0 +1,5 @@ +--- +"@changesets/cli": patch +--- + +Fixed an issue with logging non-stringified Buffers in case of publish errors. diff --git a/packages/cli/src/commands/publish/npm-utils.ts b/packages/cli/src/commands/publish/npm-utils.ts index 301157214..df10e8d7c 100644 --- a/packages/cli/src/commands/publish/npm-utils.ts +++ b/packages/cli/src/commands/publish/npm-utils.ts @@ -214,7 +214,7 @@ async function internalPublish( ); } - error(stderr); + error(stderr.toString()); return { published: false }; } return { published: true };