TypeScript - What files should I check?

If I add a TypeScript file in Visual Studio 2013 like Index.ts, I also get Index.js and Index.js.map. The js file is the compiled version of the ts file, so my question is, should the js file be version controlled as well, or? In other words, should I test it in TFS? Since in some sense the js file becomes binary when working with TypeScript.

+3


source to share


1 answer


It is best to think of JavaScript as a binary file - don't check files js

or map

at all.



This will prevent noise in your source control repository, and also means the build process does not require overwriting js

source controlled files , which is a problem in some situations.

+11


source







All Articles