(name: string)
| 300 | * Remove a managed binary. |
| 301 | */ |
| 302 | export function removeRuntimeBinary(name: string): void { |
| 303 | const def = REGISTRY[name] |
| 304 | if (!def) return |
| 305 | |
| 306 | const binaryPath = getBinaryPath(def) |
| 307 | if (!binaryPath) return |
| 308 | |
| 309 | if (fs.existsSync(binaryPath)) { |
| 310 | fs.unlinkSync(binaryPath) |
| 311 | removeVersion(name) |
| 312 | logger.info(`[Binaries] Removed ${def.displayName} ${def.version}`) |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | export const load = () => { |
| 317 | logger.info("[Binaries] Initializing managed binary registry") |
no test coverage detected