I need to change the TypeScript generated js file name to something else. How can I do that
For example I have MyCompany.ClassA.ts
It will generate MyCompany.ClassA.js by default
But I want MyCompany.ClassA.generated.js
I took a look at .tsConfig file but I couldn't find anything useful there.
ps. I am using VisualStudio2013 for Typescript and generating the js files
To compile a single TypeScript file to .js with a custom name, use
--outFile:Compiling multiple files to the
.generated.jspattern would require a bit more work. You could compile one at a time as in thetscexample above.Or you could use
--outDirto collect the compiled files under standard names, and then rename them with your own script.Note that
--outFileand--outDirreplace--out, which is deprecated:https://github.com/Microsoft/TypeScript/wiki/Compiler-Options