(hint?: string)
| 34 | } |
| 35 | |
| 36 | export async function resolveProjectRoot(hint?: string): Promise<string> { |
| 37 | if (hint) return path.resolve(hint); |
| 38 | return process.env.LOOP_PROJECT_ROOT |
| 39 | ? path.resolve(process.env.LOOP_PROJECT_ROOT) |
| 40 | : process.cwd(); |
| 41 | } |
| 42 | |
| 43 | export async function readFileIfExists(filePath: string): Promise<string | null> { |
| 44 | try { |
no outgoing calls
no test coverage detected