diff --git a/packages/cli/script/build.ts b/packages/cli/script/build.ts index b70462bfb51..a29ec04f851 100755 --- a/packages/cli/script/build.ts +++ b/packages/cli/script/build.ts @@ -117,7 +117,7 @@ for (const item of targets) { autoloadTsconfig: true, autoloadPackageJson: true, target: target.replace(binary, "bun") as Bun.Build.CompileTarget, - executablePath, + ...(executablePath ? { executablePath } : {}), outfile: path.join(outdir, name, "bin", binary), execArgv: [`--user-agent=${binary}/${Script.version}`, "--use-system-ca", "--no-warnings", "--"], windows: {},