fix: preserve process.env when spawning formatter commands (#1850)
This commit is contained in:
parent
3d9c5b4adf
commit
80b25c79bb
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue