Skip to content

Planner: tsc is skipped when a config extended by relative path (not named tsconfig*.json) changes #236

Closed

Description

@FredApps

What happens

programMembership (src/planner/type-program.ts) decides whether tsc and type-aware ESLint can be skipped for a change. It treats a change as global ("affects every file's types") only when the path matches (tsconfig|jsconfig)*.json, package.json, a lockfile or a .d.ts. A config the project extends by a relative path under another name ("extends": "./config/base.json", a common shared-base layout) is not recognised. Changing its compilerOptions, for example turning on strict, is reported as outside the program, and the typecheck is skipped.

Repro

scripts: { typecheck: "tsc --noEmit" } with:

tsconfig.json     { "extends": "./config/base.json", "include": ["src"] }
config/base.json  { "compilerOptions": { "strict": true } }
src/a.ts

Changed: config/base.json. On main (40aa308), narrowGateChecks gives:

typecheck SKIP  "no changed file is in the tsconfig.json program"

Two hops (base.json extending ./strict) are missed the same way. #141 covered tsconfig.*.json names in impact analysis; this is the planner's gate narrowing for configs with any other name.

Impact

The typecheck, and type-aware lint, which goes through the same membership check, is skipped for exactly the change that alters every file's compiler options. That is the unsafe direction for gate narrowing.

Failing test

Added to tests/planner/type-program.test.ts in the linked PR. Output on main:

✖ treats a change to an extended config, at any depth, as changing every file
  AssertionError [ERR_ASSERTION]: config/base.json
    actual: false,
    expected: true,

Activity

  1. added a commit that references this issue on Nov 18, 2026
    ce2f67d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions