(t: Target)
| 142 | bunTargetKeys.includes(key as BunTargetKey); |
| 143 | |
| 144 | const bunTarget = (t: Target): Bun.Build.CompileTarget => { |
| 145 | const key = [t.os, t.arch, t.abi].filter(Boolean).join("-"); |
| 146 | if (!isBunTargetKey(key)) throw new Error(`Unsupported Bun compile target: ${key}`); |
| 147 | const target = bunTargets[key]; |
| 148 | return target; |
| 149 | }; |
| 150 | |
| 151 | const binaryName = (t: Target) => (t.os === "win32" ? "executor.exe" : "executor"); |
| 152 | const workerdBinaryName = (t: Target) => (t.os === "win32" ? "workerd.exe" : "workerd"); |
no test coverage detected