From 2d963e079de167ee36dd763aa43b357e2431c555 Mon Sep 17 00:00:00 2001 From: Hamish Buckmaster Date: Wed, 9 Nov 2022 19:08:49 +1100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: James Henry --- commands/publish/README.md | 2 +- commands/publish/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/publish/README.md b/commands/publish/README.md index 054a6bf831..ae5a871024 100644 --- a/commands/publish/README.md +++ b/commands/publish/README.md @@ -302,7 +302,7 @@ Useful in [Continuous integration (CI)](https://en.wikipedia.org/wiki/Continuous lerna publish --canary --yes --summary-file ./output.json ``` -When run with this flag, once a successfully publish it will create a json summary report(see below for an example). +When run with this flag, a json summary report will be generated after all packages have been successfully published (see below for an example). ```json [ diff --git a/commands/publish/index.js b/commands/publish/index.js index dd5851838d..8656820cde 100644 --- a/commands/publish/index.js +++ b/commands/publish/index.js @@ -253,7 +253,7 @@ class PublishCommand extends Command { output(jsonObject); try { fs.writeFileSync(filePath, JSON.stringify(jsonObject)); - output("Locate Summary Report Here: ", filePath); + output("Publish summary created: ", filePath); } catch (error) { output("Failed to create the summary report", error); }