(p: string)
| 15 | } |
| 16 | |
| 17 | async function fileExists(p: string): Promise<boolean> { |
| 18 | try { |
| 19 | await stat(p); |
| 20 | return true; |
| 21 | } catch { |
| 22 | return false; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | async function findHubByName(rootDir: string, name: string): Promise<string | null> { |
| 27 | const hubs = await discoverHubs(rootDir); |