Skip to content

Commit

Permalink
fix: removed default value from command
Browse files Browse the repository at this point in the history
renamed to summary-file
  • Loading branch information
HamishBuckmaster committed Jul 7, 2020
1 parent d56347a commit 1a23bc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions commands/publish/command.js
Expand Up @@ -110,10 +110,9 @@ exports.builder = yargs => {
hidden: true,
type: "boolean",
},
"output-json": {
"summary-file": {
// Json output.
hidden: true,
default: "M:/dev/lerna/output.json",
type: "string",
},
// y: {
Expand Down
4 changes: 2 additions & 2 deletions commands/publish/index.js
Expand Up @@ -242,9 +242,9 @@ class PublishCommand extends Command {

output("Successfully published:");

if (this.options.outputJson) {
if (this.options.summaryFile) {
// create a json object and output it to a file location.
const filePath = this.options.outputJson || "./output.json";
const filePath = this.options.summaryFile || "./output.json";
const jsonObject = this.packagesToPublish.map(pkg => {
return {
packageName: pkg.name,
Expand Down

0 comments on commit 1a23bc7

Please sign in to comment.