title: Compiling multiple Typescript files
body: <p>My nodejs Typescript server has grown in complexity and now relies on a few classes defined in another .ts file. This has created a strange compilation problem:</p>
  
  <ul>
  <li><p><code>tsc server.ts</code> compiles everything fine. But <code>node server.js</code> crashes at
  the first line that instantiates a class from the other .ts file</p></li>
  <li><p><code>tsc --out server.js server.ts</code> results in the error message: "module
  emit collides with emitted script"</p></li>
  <li><p><code>tsc --out serv.js server.ts</code> seems to work but actually compiles
  everything EXCEPT server.ts. The code from the other files is there and <code>node serv.js</code> just returns without any output</p></li>
  </ul>
  
  <p>I'm not the only one with this error, <a href="https://typescript.codeplex.com/workitem/294" rel="noreferrer">https://typescript.codeplex.com/workitem/294</a> unfortunately the solution on codeplex doesn't work for me.</p>
  
  <p>How do I use <code>tsc</code> correctly ?</p>