Skip to content

Commit

Permalink
Fix installing message in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jun 7, 2023
1 parent 30909f4 commit 372cceb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</p>


# tea/cli 0.35.1
# tea/cli 0.35.2

`tea` puts the whole open source ecosystem at your fingertips:

Expand Down
8 changes: 6 additions & 2 deletions src/prefab/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default async function(pkgs: PackageSpecification[], update: boolean) {
} else if (verbosity > Verbosity.quiet) {
logger.replace("resolving package graph")
} else {
logger.replace(`${teal("installing")} ${pkgs.map(utils.pkg.str).join(", ")}`)
logger.replace(`${teal("resolving")} ${pkgs.map(utils.pkg.str).join(", ")}`)
}

const { pkgs: wet, dry } = await hydrate(pkgs)
Expand All @@ -29,8 +29,12 @@ export default async function(pkgs: PackageSpecification[], update: boolean) {
if (json) {
logJSON({ status: "resolved", pkgs: pending.map(utils.pkg.str) })
} else {
logger.clear()
console.debug({hydrating: pkgs})
if (verbosity <= Verbosity.quiet) {
logger.replace(`${teal("installing")} ${pending.map(utils.pkg.str).join(", ")}`)
} else {
logger.clear()
}
}

if (!dryrun && env.TEA_MAGIC?.split(':').includes("prompt")) {
Expand Down

0 comments on commit 372cceb

Please sign in to comment.