(rootDir: string, embeddedRoots?: Iterable<string>)
| 693 | * skip rediscovery; otherwise they're discovered here (the watcher path). |
| 694 | */ |
| 695 | export function buildScopeIgnore(rootDir: string, embeddedRoots?: Iterable<string>): ScopeIgnore { |
| 696 | const roots = embeddedRoots ? [...embeddedRoots] : discoverEmbeddedRepoRoots(rootDir); |
| 697 | const include = loadIncludeMatcher(rootDir); |
| 698 | return new ScopeIgnore( |
| 699 | buildDefaultIgnore(rootDir), |
| 700 | roots.map((root) => ({ root, matcher: buildDefaultIgnore(path.join(rootDir, root)) })), |
| 701 | loadExcludeMatcher(rootDir), |
| 702 | include, |
| 703 | include ? includeStaticRoots(loadIncludePatterns(rootDir)) : [], |
| 704 | ); |
| 705 | } |
| 706 | |
| 707 | /** |
| 708 | * Whether an embedded repo found as a tracked gitlink (mode 160000, #1031/#1033) |
no test coverage detected