title: How to compile typescript using npm command?
body: <p>I just wanted to know is there any command which will directly compile the typescript code and get the output. Right now, what I am doing is, every time when I make changes in the file I have to re-run the command in order to compile it</p>
  <pre><code>npm start
  </code></pre>
  <p>This starts the browser and then I have to stop the execution using <kbd>Ctrl</kbd>+<kbd>C</kbd> and then I have to run the file using the npm command</p>
  <pre><code>node filename
  </code></pre>
  <p>to see the output.</p>
  <p>So what I want to know is, is there any npm command which will compile the .ts file and see the changes which I have made in the file while I run the file using the</p>
  <pre><code>node filename
  </code></pre>
  <p>command</p>