(base: string, platform: NodeJS.Platform)
| 56 | type UpdateLogger = Pick<Logger, 'info' | 'warn'>; |
| 57 | |
| 58 | function withCmdSuffix(base: string, platform: NodeJS.Platform): string { |
| 59 | return platform === 'win32' ? `${base}.cmd` : base; |
| 60 | } |
| 61 | |
| 62 | function bunCommand(platform: NodeJS.Platform): string { |
| 63 | return platform === 'win32' ? 'bun.exe' : 'bun'; |