I am migrating all my JavaScript files to typescript, first i need to convert my existing JavaScript file extensions to *.ts
To test i have following command, but this fail: used examples
for f in **/*.js; do
git mv "$f" "${f%.js}.ts"
done
I always seem to get:
fatal: not under version control, source=jscript/index.js, destination=jscript/index.ts
My final goal is to recursive go to my javascript folder and rename inplace from *.js to *.ts