(cmd: string)
| 33 | } |
| 34 | |
| 35 | function isCommandAvailable(cmd: string): boolean { |
| 36 | try { |
| 37 | execSync(`which ${cmd} 2>/dev/null`, { stdio: 'pipe' }) |
| 38 | return true |
| 39 | } catch { |
| 40 | return false |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Detect whether the current installation was done via bun. |