From 1508d086c75ac09fa70c6224fd3512e2e653541a Mon Sep 17 00:00:00 2001 From: James Date: Wed, 9 Sep 2026 17:16:40 -0700 Subject: [PATCH] fix(producer): pass stub formatter path as an argument --- packages/producer/scripts/build-hf-early-stub.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/producer/scripts/build-hf-early-stub.ts b/packages/producer/scripts/build-hf-early-stub.ts index 46f932cf9a..4add68b31a 100644 --- a/packages/producer/scripts/build-hf-early-stub.ts +++ b/packages/producer/scripts/build-hf-early-stub.ts @@ -14,7 +14,7 @@ import { mkdirSync, writeFileSync } from "node:fs"; import { dirname, resolve } from "node:path"; import { fileURLToPath } from "node:url"; import { buildSync } from "esbuild"; -import { execSync } from "node:child_process"; +import { execFileSync } from "node:child_process"; const thisDir = dirname(fileURLToPath(import.meta.url)); const repoRoot = resolve(thisDir, ".."); @@ -67,7 +67,7 @@ writeFileSync( // Format the generated file so `oxfmt --check` passes in CI. // Errors are intentionally swallowed — oxfmt unavailable in some envs. try { - execSync(`bunx oxfmt ${outPath}`, { stdio: "ignore" }); + execFileSync("bun", ["x", "oxfmt", outPath], { stdio: "ignore" }); } catch { // not fatal }