(path: string)
| 28 | } |
| 29 | |
| 30 | async function fileExists(path: string): Promise<boolean> { |
| 31 | try { |
| 32 | await access(path) |
| 33 | return true |
| 34 | } catch (error) { |
| 35 | if (isENOENT(error)) { |
| 36 | return false |
| 37 | } |
| 38 | throw error |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | async function findNearestInstructionFile(startDir: string): Promise<string | null> { |
| 43 | let currentDir = startDir |
no test coverage detected