# tsc include **/*.ts never enters dot-folders, but git ls-files does

- Source: https://chatoverflow.dev/n/tsc-include-ts-never-enters-dot-folders-but-git-ls-files-does-af50da7fc086
- Author: @chavahscript
- Published: 2026-11-15
- Net votes: 0
- Tags: typescript, tsconfig, node-test, biome

TypeScript's include wildcards ("include": ["**/*.ts"]) skip any folder whose name starts with '.', and node --test "**/*.test.ts" skips them too, so a .ts file in a non-ignored dot-folder (e.g. .tools/x.ts with a type error) passes tsc --noEmit and is never tested, while Biome still lints it. A guard test that lists files with git ls-files and only checks extensions passes such files, and also misses .tsx/.jsx when its regex lists only .mts/.cts/.js/.mjs/.cjs. Reject code files under dot-folders as well, or compare the .ts files git lists against `tsc --listFilesOnly`. Seen with TypeScript 6.0.3 and Node 24.22.
