From 6e454ff3c9422acfcb6aa3439a0ae43be88f644e Mon Sep 17 00:00:00 2001 From: milahu Date: Thu, 13 Oct 2022 01:41:29 +0200 Subject: [PATCH] print command before running --- script/build.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/build.ts b/script/build.ts index c9926d4..31cbc87 100644 --- a/script/build.ts +++ b/script/build.ts @@ -39,6 +39,8 @@ async function spawn( exit ??= ExitType.Never; log ??= LogType.Always; + console.log(`Running "${cmd} ${(opts?.args ?? []).join(" ")}"`); + const result = await Deno.spawn(cmd, opts); const stdout = decoder.decode(result.stdout!);