From fb4fae37697029db57718d13e50199ea300130d6 Mon Sep 17 00:00:00 2001 From: 0xCalibur <92554750+0xCalibur@users.noreply.github.com> Date: Thu, 23 Jan 2025 00:25:30 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20newer=20bun=20version=20requires?= =?UTF-8?q?=20passing=20in=20the=20process.env.PATH=20env=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tooling/tasks/utils/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tooling/tasks/utils/index.ts b/tooling/tasks/utils/index.ts index c16069a7..e9d7e1a1 100644 --- a/tooling/tasks/utils/index.ts +++ b/tooling/tasks/utils/index.ts @@ -48,7 +48,10 @@ export const exec = async (cmdLike: string[] | string, options?: ExecOptions): P return new Promise(async (resolve, reject) => { const proc = Bun.spawn({ cmd: cmd.split(" "), - env: options?.env, + env: { + ...options?.env, + PATH: process.env.PATH, + }, onExit(_proc, exitCode, _signalCode, _error) { if (exitCode === 0) { resolve(exitCode);