Use `include` and `exclude` patterns.
Section: tsconfig Basics
Control included files
json
json
{
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["dist", "node_modules"]
}Explanation
File inclusion bugs are common, so keep these patterns simple and explicit.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing tsconfig Basics