title: Run TypeScript file on Sublime text
body: <p>I want to build a TypeScript file (with extension .ts) in the sublime text 3 console and show the output in the console the same way sublime does with <code>python</code>. How can I do that knowing that TypeScript is a compiled language? A compiled language means that it compiles the (.ts) file and convert it to Javascript (.js) file first before executing the JavaScript file.</p>
  
  <p>I have tried installing the TypeScript plugin from the sublime package installer, but it needs a certain architecture to run the file as explained <a href="https://cmatskas.com/getting-started-with-typescript-and-sublime-text/" rel="nofollow noreferrer">here</a>. Also <a href="https://stackoverflow.com/questions/20802285/run-shell-script-when-saving-a-file-in-sublime-text-3">this</a> question wasn't helpful as it shows how to build after saving and it didn't say anything about running a standalone file.</p>