menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Why would ...
source image

Dev

1d

read

77

img
dot

Image Credit: Dev

Why would deleted files remain in the dist?

  • 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.

Read Full Article

like

4 Likes

For uninterrupted reading, download the app