I have a typescript filewatcher set up in webstorm that I want to use to constantly compile changes to the typescript file. The file also uses jQuery. The typescript compiler is not changing the file to javascript as it should. The compilation happen perfectly fine until I added "--module amd" to the arguments - to compile with javascript. So what I have now is the new .ts file and the old .js file as it was before I changed the argument.
Here's the ts file:
/// <reference path="jquery.d.ts" />
function append(parentDivId, text){
$(idSelector(parentDivId)).append(text);
}
Here are the filewatcher settings are as shown:
Program: C:\Users\Me\AppData\Roaming\npm\tsc.cmd
Arguments: --sourcemap $FileName$ --out "--module amd"