How to replace a .ts file with converted file in place?

If you leave the destination folder empty it’ll put the converted file back into the same folder as the original file.