()
| 29 | } |
| 30 | |
| 31 | async function findConfigFileNameInCwd(): Promise<string> { |
| 32 | const filesInWorkingDirectory = new Set(await readdir(cwd())); |
| 33 | for (const extension of ['mjs', 'cjs', 'ts']) { |
| 34 | const fileName = `${DEFAULT_CONFIG_BASE}.${extension}`; |
| 35 | if (filesInWorkingDirectory.has(fileName)) return fileName; |
| 36 | } |
| 37 | return `${DEFAULT_CONFIG_BASE}.js`; |
| 38 | } |
no test coverage detected
searching dependent graphs…