Skip to content

src/ignore

Built-in ignore glob patterns for file scanning and watching.

This module owns the pattern catalog and option toggles only. Each group is compiled into PathMatchPredicate instances via toPathMatcher; composition (and/or/negate) lives in ./match.

Consumers:

  • ignorePatterns - yields the enabled glob strings (for projen prettier/gitignore). Pass { test: false } there: the test group is for filesystem scanning only (skip test dirs when discovering packages / watching), not for VCS or formatter ignore files.
  • ignorePathMatcher - returns a single PathMatcher for findFiles and watchFiles (keeps test: true by default).

This is the repository owner for generated, dependency, VCS, temporary, test, and lockfile ignore policy. Extend these groups instead of copying ignore lists into individual generators or watchers.