(repoPath)
| 392 | } |
| 393 | |
| 394 | async function findDockerfile(repoPath) { |
| 395 | // Case-insensitive, and also accept Containerfile (Podman) / Dockerfile.<tag>. |
| 396 | if (await dirHasDockerfile(repoPath)) return true; |
| 397 | try { |
| 398 | const entries = await readdir(repoPath, { withFileTypes: true }); |
| 399 | for (const e of entries) { |
| 400 | if (e.isDirectory() && !e.name.startsWith(".")) { |
| 401 | if (await dirHasDockerfile(join(repoPath, e.name))) return true; |
| 402 | } |
| 403 | } |
| 404 | } catch { |
| 405 | /* ignore */ |
| 406 | } |
| 407 | return false; |
| 408 | } |
| 409 | |
| 410 | // Directories we never descend into when unioning module build files. |
| 411 | const SKIP_DIRS = new Set(["node_modules", "target", "build", "dist", "out", "bin", ".git"]); |
no test coverage detected