(file: string)
| 87 | } |
| 88 | |
| 89 | function resolve(file: string) { |
| 90 | const shell = full(file) |
| 91 | if (rooted(shell)) { |
| 92 | if (stat(shell)?.isFile()) return shell |
| 93 | return |
| 94 | } |
| 95 | return which(shell) ?? undefined |
| 96 | } |
| 97 | |
| 98 | function win() { |
| 99 | return Array.from( |