(rootDir: string)
| 294 | * it project code; the explicit `.gitignore` negation is the only opt-in). |
| 295 | */ |
| 296 | export function buildDefaultIgnore(rootDir: string): Ignore { |
| 297 | const ig = ignore().add(DEFAULT_IGNORE_PATTERNS); |
| 298 | const rootGitignore = path.join(rootDir, '.gitignore'); |
| 299 | if (fs.existsSync(rootGitignore)) ig.add(readGitignorePatterns(rootGitignore)); |
| 300 | return ig; |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * Defaults-only ignore matcher (no root `.gitignore` merged). Used wherever the |
no test coverage detected