<p dir="auto">When using the declaration option the .d.ts files are all generated in the output directory of the .js files. Please provide an option to define the output directory and/or the output file for the declarations.</p>
<p dir="auto">I need to make an automated building of my typescript projects. Typescript compilation results (i.e .js and .d.ts files) need further separate processing.</p>
<p dir="auto">It would be nice if there is separate compilation option to specify output directory for generated declarations. Something like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//tsconfig.json
{
  &quot;CompilerOptions&quot;: {
    ...
      &quot;declaration&quot;: true,
      &quot;declarationDir&quot;: &quot;target/typings&quot;
    ...
  }
}```"><pre class="notranslate"><span class="pl-c">//tsconfig.json</span>
<span class="pl-kos">{</span>
  <span class="pl-s">"CompilerOptions"</span>: <span class="pl-kos">{</span>
    ...
      <span class="pl-s">"declaration"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
      <span class="pl-s">"declarationDir"</span>: <span class="pl-s">"target/typings"</span>
    <span class="pl-kos">.</span><span class="pl-kos">.</span><span class="pl-kos">.</span>
  <span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-s">``</span>`</pre></div>