()
| 13 | } |
| 14 | |
| 15 | export function requireFreebuffBinary(): string { |
| 16 | const binaryPath = getFreebuffBinaryPath() |
| 17 | if (!existsSync(binaryPath)) { |
| 18 | throw new Error( |
| 19 | `Freebuff binary not found at ${binaryPath}. ` + |
| 20 | 'Build with: bun freebuff/cli/build.ts <version>', |
| 21 | ) |
| 22 | } |
| 23 | return binaryPath |
| 24 | } |
no test coverage detected