Deleted .ts files in TypeScript projects can leave behind compiled .js and .d.ts files in the dist/ folder.
TypeScript compiler (tsc) does not automatically clean up old files, potentially leading to issues like unexpected crashes and bugs.
To address this issue, a new tool called tsc-clear has been developed using Rust, which automatically removes stale compiled files from the dist/ folder.
tsc-clear is easy to install globally using npm and can be integrated into your project to ensure a clean output directory after compilation.