(name: BinaryType)
| 13 | export { BinaryType, engineEnvVarMap } |
| 14 | |
| 15 | async function getBinaryName(name: BinaryType): Promise<string> { |
| 16 | const binaryTarget = await getBinaryTargetForCurrentPlatform() |
| 17 | const extension = binaryTarget === 'windows' ? '.exe' : '' |
| 18 | return `${name}-${binaryTarget}${extension}` |
| 19 | } |
| 20 | |
| 21 | export async function resolveBinary(name: BinaryType, proposedPath?: string): Promise<string> { |
| 22 | // if file exists at proposedPath (and does not start with `/snapshot/` (= pkg), use that one |
no test coverage detected