(rootDir: string, embeddedRoots?: Iterable<string>)
| 503 | * skip rediscovery; otherwise they're discovered here (the watcher path). |
| 504 | */ |
| 505 | export function buildScopeIgnore(rootDir: string, embeddedRoots?: Iterable<string>): ScopeIgnore { |
| 506 | const roots = embeddedRoots ? [...embeddedRoots] : discoverEmbeddedRepoRoots(rootDir); |
| 507 | return new ScopeIgnore( |
| 508 | buildDefaultIgnore(rootDir), |
| 509 | roots.map((root) => ({ root, matcher: buildDefaultIgnore(path.join(rootDir, root)) })), |
| 510 | loadExcludeMatcher(rootDir), |
| 511 | ); |
| 512 | } |
| 513 | |
| 514 | /** |
| 515 | * Whether an embedded repo found as a tracked gitlink (mode 160000, #1031/#1033) |
no test coverage detected