feat(FN-5610): externalize cpu-features in Bun build

Externalizes the `cpu-features` dependency from the CLI build step to support Bun compilation compatibility, completing Step 2 of the migration.

Fusion-Task-Id: FN-5610

Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
Fusion-Task-Id: FN-5610
This commit is contained in:
gsxdsm
2026-05-27 06:05:03 -07:00
parent 7d2cf330db
commit bb19823ed4

View File

@@ -343,6 +343,9 @@ function compileBinary(outFile: string, target: string, isCrossCompile: boolean)
// external so Bun's static bundler doesn't try to resolve it at compile.
"--external",
"react-devtools-core",
// cpu-features: native .node binding from ssh2 (transitive via dockerode); ssh2 falls back to pure JS when unavailable
"--external",
"cpu-features",
],
cwd: workspaceRoot,
stdout: "inherit",