(t: Target)
| 168 | bunTargetKeys.includes(key as BunTargetKey); |
| 169 | |
| 170 | const bunTarget = (t: Target): Bun.Build.CompileTarget => { |
| 171 | const key = [t.os, t.arch, t.abi].filter(Boolean).join("-"); |
| 172 | if (!isBunTargetKey(key)) throw new Error(`Unsupported Bun compile target: ${key}`); |
| 173 | const target = bunTargets[key]; |
| 174 | return target; |
| 175 | }; |
| 176 | |
| 177 | const binaryName = (t: Target) => (t.os === "win32" ? "executor.exe" : "executor"); |
| 178 | const workerdBinaryName = (t: Target) => (t.os === "win32" ? "workerd.exe" : "workerd"); |
no test coverage detected