mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 04:26:05 +00:00
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({
|
||||
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",
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue