title: Compile Angular2 ts file
body: <p>I'm trying Angular2 using Typescript, but I have a problem with tsc.</p>
  
  <p>This is my tsconfig.json file:</p>
  
  <pre><code>{
  "compilerOptions": {
      "module": "commonjs",
      "noImplicitAny": true,
      "removeComments": true,
      "preserveConstEnums": true,
      "out": "compiled.js",
      "emitDecoratorMetadata":true,
      "target":"es5"
  },
  "files": [
      "ts/_base/_all.ts"
  ]
  }
  </code></pre>
  
  <p>This is my _all.ts file:</p>
  
  <pre><code>///&lt;reference path="./typings/libs.d.ts"/&gt;
  ///&lt;reference path="../app.ts"/&gt;
  ///&lt;reference path="../controllers/loginCtrl.ts"/&gt;
  </code></pre>
  
  <p>And this is my app controller:</p>
  
  <pre><code>import {Component, View, bootstrap} from 'angular2/angular2';
  
  @Component({
      selector: 'my-app'
  })
  @View({
      template: `Hi`
  })
  
  class MyAppComponent 
  {   
      constructor() 
      {
      }
  } 
  
  bootstrap(MyAppComponent); 
  </code></pre>
  
  <p>Normally running <em>tsc</em> I get a single output file (<em>compiled.js</em>), but using angular2 I get one .js file for each ts file (so tsc does not merge the output)... </p>
  
  <p>I noticed that the problem is present using the import statement:</p>
  
  <pre><code>import {Component, View, bootstrap} from 'angular2/angular2';
  </code></pre>
  
  <p>Omitting this line, the output is correctly merged (but without the import I cannot use the module).</p>
  
  <p>What I'm doing wrong?</p>