Skip to content

Commit

Permalink
🔧 newer bun version requires passing in the process.env.PATH env vari…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
0xCalibur authored Jan 23, 2025
1 parent 389699b commit fb4fae3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tooling/tasks/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fb4fae3

Please sign in to comment.