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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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