title: TS6059 in ignored directory
body: <p>I have a tsconfig.json file with the following:</p>
  
  <pre><code>{"compilerOptions": {                                                                         
      "module": "commonjs",                                                                    
      "noImplicitAny": false,                                                                  
      "removeComments": true,                                                                  
      "preserveConstEnums": true,                                                              
      "outDir": "./target/src/",                                                               
      "rootDir": "./src/main/webapp/",                                                         
      "sourceMap": true,                                                                       
      "experimentalDecorators": true                                                           
  },                                                                                           
      "exclude": ["node_modules", "target"]  
  }
  </code></pre>
  
  <p>When I run tsc I get the error: </p>
  
  <blockquote>
    <p>error TS6059: File '../node_modules/ng2-select/components/ng2-select-config.ts' is not under 'rootDir' 'main/webapp'. 'rootDir' is expected to contain all source files.    </p>
  </blockquote>
  
  <p>The culprit seems to be when I try to load ng2-select in a file:</p>
  
  <pre><code>import {Component} from 'angular2/core';
  import {select} from 'ng2-select';
  </code></pre>
  
  <p>If I run tsc without the second import it's fine. If I add the second I get that error. </p>
  
  <p>Any ideas as to why it's trying to compile ng2-select even though it's supposed to be ignored?</p>
  
  <p>Thanks!</p>