Skip to content

Commit

Permalink
fix: build script for deno 1.25.0 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-runge authored Aug 27, 2022
1 parent 5fcde3c commit 48e30fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions script/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function spawn<T extends Deno.SpawnOptions>(
const stdout = decoder.decode(result.stdout!);
const stderr = decoder.decode(result.stderr!);

if (result.status.success) {
if (result.success) {
if (log !== "never") {
console.log(`Successfully ran "${cmd} ${(opts?.args ?? []).join(" ")}"`);
}
Expand All @@ -69,20 +69,20 @@ async function spawn<T extends Deno.SpawnOptions>(
if (stderr.length !== 0) {
console.log(`stderr:\n${indent(stderr)}`);
}
console.log(`status: ${result.status.code}`);
console.log(`status: ${result.code}`);
}

if (exit === ExitType.Fail) {
Deno.exit(result.status.code);
Deno.exit(result.code);
}
}

if (exit === ExitType.Exit) {
Deno.exit(result.status.code);
Deno.exit(result.code);
}

return {
status: result.status,
status: result,
stdout,
stderr,
};
Expand Down

0 comments on commit 48e30fd

Please sign in to comment.