(p: string)
| 45 | ]; |
| 46 | |
| 47 | async function fileExists(p: string): Promise<boolean> { |
| 48 | try { |
| 49 | await fs.access(p); |
| 50 | return true; |
| 51 | } catch { |
| 52 | return false; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | export async function detectProjectInfo(cwd: string): Promise<ProjectInfo> { |
| 57 | const info: ProjectInfo = { |