title: index.js not doing what index.ts does
body: <p>I'm currently building a webapp with angular2 and typescript. I tried to use <code>index.ts</code> so in my code, I could simply use</p>
  
  <pre><code>import {LayoutComponent} from '../layout';
  </code></pre>
  
  <p>But when I transpile, the javascript engine won't look for <code>index.js</code> but for <code>./layout</code> so it doesn't work.</p>
  
  <p>Is there a config for the typescript transpiler, something I should configure with systemjs or use another loader like webpack?</p>