title: Typescript file import with relative path failing
body: <p>Trying to run <code>src/index.js</code> I get the following error:</p>
  <pre><code>Error: Cannot find module './utils/spinner'
  </code></pre>
  <p><code>index.js</code> import looks like this:</p>
  <pre class="lang-js prettyprint-override"><code>const { startSpinner, stopSpinner } = require('./utils/spinner')
  </code></pre>
  <p>Folder structure:</p>
  <p><a href="https://i.stack.imgur.com/clofo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/clofo.png" alt="fold_struc" /></a></p>
  <p><code>tsconfig.json</code> looks like this:</p>
  <pre class="lang-js prettyprint-override"><code>{
    &quot;extends&quot;: &quot;@tsconfig/node12/tsconfig.json&quot;,
    &quot;compilerOptions&quot;: {
      &quot;outDir&quot;: &quot;lib&quot;,
      &quot;rootDir&quot;: &quot;src&quot;,
      &quot;sourceMap&quot;: true,
      &quot;allowJs&quot;: true
    },
    &quot;include&quot;: [
      &quot;src/**/*&quot;
    ],
    &quot;exclude&quot;: [
      &quot;src/**/__tests__/*&quot;,
      &quot;src/**/*.test.ts&quot;
    ]
  }
  
  </code></pre>
  <p><code>@tsconfig/node12/tsconfig.json</code> looks like this:</p>
  <pre class="lang-js prettyprint-override"><code>{
    &quot;$schema&quot;: &quot;https://json.schemastore.org/tsconfig&quot;,
    &quot;display&quot;: &quot;Node 12&quot;,
  
    &quot;compilerOptions&quot;: {
      &quot;lib&quot;: [&quot;es2019&quot;, &quot;es2020.promise&quot;, &quot;es2020.bigint&quot;, &quot;es2020.string&quot;],
      &quot;module&quot;: &quot;commonjs&quot;,
      &quot;target&quot;: &quot;es2019&quot;,
  
      &quot;strict&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;forceConsistentCasingInFileNames&quot;: true
    }
  }
  
  
  </code></pre>
  <p>I have tried adding <code>baseUrl</code> to <code>tsconfig.json</code> and set it to <code>.src</code> , <code>src</code>, <code>/src</code> and tried to the same with every variation for <code>rootDir</code>.</p>