From e3ff99e8144257c372b2bbcc9b9d593a3f18cbaa Mon Sep 17 00:00:00 2001 From: Lukas Runge Date: Fri, 26 Aug 2022 21:59:46 +0200 Subject: [PATCH] fix: `Deno.SpawnOutput` now extends `ChildStatus` --- script/build.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/build.ts b/script/build.ts index 8dd7428..5caae17 100644 --- a/script/build.ts +++ b/script/build.ts @@ -44,7 +44,7 @@ async function spawn( 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(" ")}"`); } @@ -69,20 +69,20 @@ async function spawn( 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, };