title: How to compile TypeScript without using any references whatsoever
body: <p>Forgive me if I misunderstand, but I thought that if I used a <code>tsconfig.json</code> file at my project root, then I would no longer need to use any <code>///&lt;reference path="..." /&gt;</code> tags in order to make my code compile. Am I wrong?</p>
  
  <p>For example, I'm using AngularJS. My <code>App.ts</code> file looks something like this:</p>
  
  <pre><code>import SomeModule from './whatever/SomeModule';
  
  angular.module('foo', [SomeModule.name]).run(...);
  </code></pre>
  
  <p>My <code>tsconfig.json</code> file looks (in part) like this:</p>
  
  <pre><code>{
      "compileOnSave": false,
      "compilerOptions": {
          "target": "es5",
          "module": "commonjs"
      },
      "filesGlob": [
          "./www/**/*.ts",
          "./typings/**/*.ts"
      ],
      "files": [
          /* a bunch of files omitted for brevity*/
          "./typings/angularjs/angular.d.ts"
      ],
  }
  </code></pre>
  
  <p>Notice that I have listed in my files array the path to the angular definition file. Also notice that I have the <code>compileOnSave</code> option set to false. Eventually I would like to use Browserify to compile and bundle all the code. But for now I just want to see if I can get it to compile with <code>tsc</code>.</p>
  
  <p>But when I run <code>tsc App.ts</code>, I get an error that says "Cannot find name 'angular'." How do I make the TypeScript compile use the <code>angular.d.ts</code> file when compiling the code?</p>