Просмотр исходного кода

fix(cli): omit undefined compile executable path

Simon Klee 1 день назад
Родитель
Сommit
0d7fe6e074
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/cli/script/build.ts

+ 1 - 1
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: {},