(cmd)
| 464 | // ═══════════════════════════════════════════════════════════════════════════ |
| 465 | |
| 466 | function commandExists(cmd) { |
| 467 | const result = |
| 468 | process.platform === "win32" |
| 469 | ? spawnSync("where.exe", [cmd], { stdio: "pipe" }) |
| 470 | : spawnSync("sh", ["-c", `command -v ${cmd}`], { stdio: "pipe" }); |
| 471 | |
| 472 | return result.status === 0; |
| 473 | } |
| 474 | |
| 475 | function checkPrerequisites({ |
| 476 | checkUvx = true, |
no outgoing calls
no test coverage detected