title: tsconfig - How to set correct compiler output location for multiple directories (Atom)
body: <p>Suppose I have this directory structure:</p>
  
  <pre><code>public/
      js/
          lib/
  test/
      ts/
  lib/
      ts/
  </code></pre>
  
  <p>How would I configure it to compile <code>lib/ts/*.ts</code> to <code>public/js/lib/*.js</code> and <code>test/ts/*.ts</code> to <code>public/js/*.js</code>?</p>
  
  <p>I've tried setting up a separate tsconfig.json in each ts directory with the desired <code>outDir</code>, but as soon as I add a <code>///&lt;reference</code> to a file, the compiler outputs an unwanted directory tree (on save and on build.)</p>