From 8b9e3702e9be86deb67017298f7fddff6e27a6c7 Mon Sep 17 00:00:00 2001 From: markthree <1801982702@qq.com> Date: Sat, 10 Jun 2023 17:39:08 +0800 Subject: [PATCH] chore: allow extension of execa options --- src/process.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/process.ts b/src/process.ts index 2d0bcda..f072f99 100644 --- a/src/process.ts +++ b/src/process.ts @@ -6,7 +6,7 @@ import type { AnyFunction, PM } from "./type.ts" const which = useThermalFn(_which) -export async function execa(cmd: string[]) { +export async function execa(cmd: string[], options: Deno.CommandOptions = {}) { const command = await which(cmd.shift()!) const commander = new Deno.Command(command!, { @@ -14,6 +14,7 @@ export async function execa(cmd: string[]) { stdin: "inherit", stderr: "inherit", stdout: "inherit", + ...options, }) let resolved = false