(path: string)
| 216 | } |
| 217 | |
| 218 | export async function readFileSafe(path: string): Promise<string> { |
| 219 | try { |
| 220 | return await readFile(path, "utf-8"); |
| 221 | } catch { |
| 222 | return ""; |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | export async function detectProject(root: string): Promise<ProjectInfo> { |
| 227 | const pkgPath = join(root, "package.json"); |
nothing calls this directly
no outgoing calls
no test coverage detected