use git to track transformed files
Closed this issue · 1 comments
milahu commented
i have a similar script to remove typescript types, and generate pretty javascript
https://github.com/milahu/random/blob/master/javascript/tsx2jsx.mjs
that script will run 2 loops
- rename files from *.ts to *.js
- transform all files from step 1
inspect the transform: git diff HEAD^
revert the transform: git reset --hard HEAD~2
this could be hidden behind a flag like ts-to-jsdoc --git