title: typescript path alias needs module-alias/register on every file
body: <p>I am using typescript <code>v3.6.4</code> with the following <code>tsconfig.json</code> snippet:</p>
  
  <pre><code>
    "compilerOptions": {
      "moduleResolution": "node",
      "baseUrl": "./src",
      "paths": {
        "@config/*": ["config/*"],
        "@config": ["config"],
      }
    }
  </code></pre>
  
  <p>and module alias in package.json:</p>
  
  <pre><code>  "_moduleAliases": {
      "@config": "dist/config"
    }
  </code></pre>
  
  <p>I have the following folder structure:</p>
  
  <pre><code>src
   |-config
       |-index.ts
   |-app
       |index.ts
       |logic.ts
   |-dist
  </code></pre>
  
  <p>Now in app/index.ts, if I do:</p>
  
  <pre><code>import 'module-alias/register';
  import config from '@config';
  </code></pre>
  
  <p>and my <code>npm start</code> commands is:</p>
  
  <pre><code>"start": "node -r ts-node/register ./src/app/index.ts",
  </code></pre>
  
  <p><code>tsc</code> will compile successfully but <code>npm start</code> will give error:</p>
  
  <pre><code>Error: Cannot find module '@config' in src/app/logic.ts
  </code></pre>
  
  <p>And the only way to fix this is to also add</p>
  
  <pre><code>import 'module-alias/register';
  </code></pre>
  
  <p>in <code>src/app/logic.ts</code></p>
  
  <p>Seems I have to add the <code>import 'module-alias/register'</code> in every file that I do alias? Is it a way to configure this?</p>