mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-26 06:34:20 +08:00
8 lines
373 B
TypeScript
8 lines
373 B
TypeScript
import { buildTargetPlatform } from "@scriptc/compiler";
|
|
|
|
/** Default executable filename for the build target. Explicit --out paths
|
|
* stay exact; only scriptc's generated default needs the Windows PE suffix. */
|
|
export function defaultExecutableName(stem: string, platform: string = buildTargetPlatform()): string {
|
|
return platform === "win32" ? `${stem}.exe` : stem;
|
|
}
|