title: Babel creates output directory but doesn't transpile any files
body: <p>I am trying to transpile a project that uses ES6 syntax and TypeScript. I have a directory structure like this:</p>
  <pre><code>├── .babelrc
  ├── src
      ├── index.ts
      └── pitching
          ├── pitching.test.ts
          └── pitching.ts
  </code></pre>
  <p>I would like to compile everything in <code>src</code> and output into <code>dist/</code>. I have tried many variations of the following command (specified in the <code>&quot;build&quot;</code> script in <code>package.json</code>):</p>
  <pre><code>babel ./src -d ./dist
  </code></pre>
  <p>But I always get the following output:</p>
  <pre><code>$ babel ./src -d ./dist
  Successfully compiled 0 files with Babel (13ms).
  Done in 0.32s
  </code></pre>
  <p>The result is an empty <code>dist/</code> directory in my project root. I tried compiling to a single file instead of a directory, which did create a compiled file, but all the module paths referenced in the code were messed up because they were relative to the <code>src</code> directory. I only mention this because to me it indicates that my babel setup is correct, though maybe I am wrong about that too.</p>
  <p>My question is, why are my files not being transpiled, or how can I troubleshoot? The command doesn't give me any helpful output, even when I add the <code>{&quot;debug&quot;: true}</code> to the presets in my <code>.babelrc</code>.</p>
  <p>For reference, here are the babel packages and versions I am using:</p>
  <pre><code>&quot;devDependencies&quot;: {
      &quot;@babel/cli&quot;: &quot;^7.10.3&quot;,
      &quot;@babel/core&quot;: &quot;^7.10.3&quot;,
      &quot;@babel/preset-env&quot;: &quot;^7.10.3&quot;,
      &quot;@babel/preset-typescript&quot;: &quot;^7.10.1&quot;,
      &quot;@types/jest&quot;: &quot;^26.0.3&quot;,
      &quot;jest&quot;: &quot;^26.1.0&quot;
  }
  </code></pre>
  <p>and here is my <code>.babelrc</code></p>
  <pre><code>{
      &quot;presets&quot;: [&quot;@babel/preset-env&quot;, &quot;@babel/preset-typescript&quot;]
  }
  </code></pre>