If I add a TypeScript file in Visual Studio 2013, for instance Index.ts, I will also get an Index.js and a Index.js.map file. The js-file is a compiled version of the ts-file so my question is if the js-file should be version controlled aswell or? In other words, should I check it in to the TFS? Because in a sense the js-file becomes a binary when working with TypeScript.
It is best to treat the JavaScript like a binary - don't check in the js
or map
files at all.
This avoid noise in your source control repository and also means the build process doesn't need to overwrite source-controlled js
files, which is a problem in some situations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With