Skip to content

Commit

Permalink
fix: updates log output when packages fail to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
geotrev committed Feb 22, 2022
1 parent b349928 commit 585e801
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .bin/increment-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { reporter, pkgReporter } from "./reporter.js"
import { ROOT_PACKAGE_FILE } from "./constants.js"

export function incrementDependencies(args, config, entry) {
pkgReporter.start("Increment relative dependencies")
pkgReporter.start("Increment co-dependencies")

let failures = null
const { getPackage, dir } = entry
Expand Down Expand Up @@ -65,8 +65,8 @@ export function incrementDependencies(args, config, entry) {
"package.json missing: " + path.resolve(dir, ROOT_PACKAGE_FILE)
)
} else if (failures === false) {
pkgReporter.succeed("Dependencies updated")
pkgReporter.succeed("Co-dependencies updated")
} else {
pkgReporter.succeed("No relative dependencies detected")
pkgReporter.succeed("No co-dependencies detected")
}
}
10 changes: 8 additions & 2 deletions .bin/version-and-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,15 @@ export async function versionAndPublish(args, config) {
}
}

console.log("")

if (!failures) {
console.log("")
reporter.warn(
"Some packages weren't published. You might need to fix something and run another release"
)
} else {
reporter.succeed("All packages published without errors")
console.log("")
}

console.log("")
}

0 comments on commit 585e801

Please sign in to comment.