fix: preserve process.env when spawning formatter commands (#1850)

This commit is contained in:
Camden Clark
2025-08-11 23:05:26 -07:00
committed by GitHub
parent 3d9c5b4adf
commit 80b25c79bb

View File

@@ -71,7 +71,7 @@ export namespace Format {
const proc = Bun.spawn({ const proc = Bun.spawn({
cmd: item.command.map((x) => x.replace("$FILE", file)), cmd: item.command.map((x) => x.replace("$FILE", file)),
cwd: App.info().path.cwd, cwd: App.info().path.cwd,
env: item.environment, env: { ...process.env, ...item.environment },
stdout: "ignore", stdout: "ignore",
stderr: "ignore", stderr: "ignore",
}) })