From 0532d93cf3aec0a656484b5cc1e71d84cd56fb61 Mon Sep 17 00:00:00 2001 From: Long Ho Date: Sat, 14 Feb 2026 16:01:32 +0700 Subject: [PATCH 1/3] fix(oxfmt): pass env from process.env in --- apps/oxfmt/src-js/cli/worker-proxy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/oxfmt/src-js/cli/worker-proxy.ts b/apps/oxfmt/src-js/cli/worker-proxy.ts index 87b7c06011a8e..eb1a0fcc3493f 100644 --- a/apps/oxfmt/src-js/cli/worker-proxy.ts +++ b/apps/oxfmt/src-js/cli/worker-proxy.ts @@ -18,6 +18,7 @@ export async function initExternalFormatter(numThreads: number): Promise worker threads -> NAPI (prettier-plugin-oxfmt) causes a hang... runtime: "child_process", + env: process.env as Record }); return resolvePlugins(); From bfe576a698a0a3d13fc771614bb113090c7d0de5 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 14 Feb 2026 13:40:28 +0000 Subject: [PATCH 2/3] [autofix.ci] apply automated fixes --- apps/oxfmt/src-js/cli/worker-proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/oxfmt/src-js/cli/worker-proxy.ts b/apps/oxfmt/src-js/cli/worker-proxy.ts index eb1a0fcc3493f..55e0058b26c15 100644 --- a/apps/oxfmt/src-js/cli/worker-proxy.ts +++ b/apps/oxfmt/src-js/cli/worker-proxy.ts @@ -18,7 +18,7 @@ export async function initExternalFormatter(numThreads: number): Promise worker threads -> NAPI (prettier-plugin-oxfmt) causes a hang... runtime: "child_process", - env: process.env as Record + env: process.env as Record, }); return resolvePlugins(); From facde85d0951dcd640246ec39944edf10c64ae97 Mon Sep 17 00:00:00 2001 From: Yuji Sugiura <6259812+leaysgur@users.noreply.github.com> Date: Sat, 14 Feb 2026 22:44:51 +0900 Subject: [PATCH 3/3] Apply suggestion from @leaysgur Signed-off-by: Yuji Sugiura <6259812+leaysgur@users.noreply.github.com> --- apps/oxfmt/src-js/cli/worker-proxy.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/oxfmt/src-js/cli/worker-proxy.ts b/apps/oxfmt/src-js/cli/worker-proxy.ts index 55e0058b26c15..dfc3aa67f075c 100644 --- a/apps/oxfmt/src-js/cli/worker-proxy.ts +++ b/apps/oxfmt/src-js/cli/worker-proxy.ts @@ -18,6 +18,8 @@ export async function initExternalFormatter(numThreads: number): Promise worker threads -> NAPI (prettier-plugin-oxfmt) causes a hang... runtime: "child_process", + // When setting the `runtime: child_process`, + // `process.env` is not inherited (likely a bug), so it needs to be explicitly specified. env: process.env as Record, });