You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Planner: tsc is skipped when a config extended by relative path (not named tsconfig*.json) changes #236
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.
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
fix(planner): treat a change to an extended tsconfig base as global (D…