Use build mode clean command.
Section: Project References
Clean project reference outputs
bash
bash
npx tsc --build --cleanExplanation
Useful when resetting build-mode artifacts across a multi-project repo.
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 Project References
Composite project config
Enable settings required for project references.
Clean build artifacts
Remove `.tsbuildinfo` and build outputs before recompiling.