puerts icon indicating copy to clipboard operation
puerts copied to clipboard

【Feature Request】Auto remove js and map file when removing ts

Open ljporljp opened this issue 4 years ago • 4 comments

detail | 详细描述

ljporljp avatar Dec 15 '21 02:12 ljporljp

We can't determine a js is a ts production. Even if we found a way do that. The js may be anthor ts project's production, not legacy files.

chexiongsheng avatar Dec 15 '21 02:12 chexiongsheng

so this is a [feature request], puerts can give a setting to explicitly map the relation between ts and js,every project can watch the dir that contained ts and the compilered js。

ljporljp avatar Dec 15 '21 02:12 ljporljp

Sounds reasonable.

chexiongsheng avatar Dec 17 '21 02:12 chexiongsheng

Maybe try integrate ts-cleanup (https://www.npmjs.com/package/ts-cleanup) as an optional part of workflow.

huzhangyang avatar Dec 17 '21 07:12 huzhangyang