(t: Target)
| 216 | bunTargetKeys.includes(key as BunTargetKey); |
| 217 | |
| 218 | const bunTarget = (t: Target): Bun.Build.CompileTarget => { |
| 219 | const key = [t.os, t.arch, t.abi].filter(Boolean).join("-"); |
| 220 | if (!isBunTargetKey(key)) throw new Error(`Unsupported Bun compile target: ${key}`); |
| 221 | const target = bunTargets[key]; |
| 222 | return target; |
| 223 | }; |
| 224 | |
| 225 | const binaryName = (t: Target) => (t.os === "win32" ? "executor.exe" : "executor"); |
| 226 | const workerdBinaryName = (t: Target) => (t.os === "win32" ? "workerd.exe" : "workerd"); |
no test coverage detected