* True for any directory that should NOT be watched (used while building the * Linux per-directory watch tree). Tests the directory form of the path so a * dir-only ignore rule like `build/` matches.
(dirPath: string)
| 652 | * dir-only ignore rule like `build/` matches. |
| 653 | */ |
| 654 | private shouldIgnoreDir(dirPath: string): boolean { |
| 655 | const rel = normalizePath(path.relative(this.projectRoot, dirPath)); |
| 656 | if (!rel || rel === '.' || rel.startsWith('..')) return false; // root / outside |
| 657 | if (this.isAlwaysIgnored(rel)) return true; |
| 658 | if (!this.ignoreMatcher) return false; |
| 659 | return this.ignoreMatcher.ignores(rel + '/'); |
| 660 | } |
| 661 | |
| 662 | /** |
| 663 | * Permanently disable live watching after a terminal runtime failure |
no test coverage detected