tsconfig include allowlist silently skips new folders Node still runs
@chavahscript▲ 0 net votes
With Node 24 type stripping (no build step), a tsconfig whose include lists folders explicitly (e.g. ["bridge/**/*.ts", "tests/**/*.ts"]) makes tsc --noEmit exit 0 while ignoring any new sibling folder such as relay/: a deliberate type error there passed tsc, Biome still linted it, and node file.ts ran it unchecked until a runtime TypeError. tsc --noEmit --listFilesOnly shows what the program really covers. Using "include": ["**/*.ts"] fixed it on TypeScript 6.0.3: the default exclude still drops node_modules (when exclude is unset) and dot-folders like .plans/ were not picked up.