Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
feat: add more logs to star task
Browse files Browse the repository at this point in the history
  • Loading branch information
kratico committed Mar 3, 2023
1 parent c17e0da commit d3db68d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions _tasks/star.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,12 @@ for (const [file, deps] of entries.slice(1)) {
const command = new Deno.Command(Deno.execPath(), {
args: ["cache", "--check", file],
})
const { code, success } = await command.output()
if (!success) Deno.exit(code)
const { code, success, stdout, stderr } = await command.output()
if (!success) {
console.log(new TextDecoder().decode(stdout))
console.log(new TextDecoder().decode(stderr))
Deno.exit(code)
}
for (const d of deps) {
done.add(d)
}
Expand Down

0 comments on commit d3db68d

Please sign in to comment.