title: Using paths in TypeScript in a NodeJS project
body: <p>I'm trying to use the <code>paths</code> property in <code>tsconfig.json</code> in a NodeJS project.</p>
  
  <p>In <code>tsconfig.json</code> I have something like this:</p>
  
  <pre><code>"baseUrl": ".",
  "paths": {
    "@myApp/server/*": [
      "server/src/*"
    ],
    "@myApp/common/*": [
      "common/src/*"
    ]
  },
  </code></pre>
  
  <p>Running <code>tsc</code> outputs all JS files as expected, but they retain the <code>@myApp...</code> imports. As a result, <code>node</code> won't run as it can't resolve all modules having as path <code>@myApp...</code>. </p>
  
  <p>I can't find a way to convert the <code>paths</code> I've set in <code>tsconfig.json</code> to a value that can be used by <code>node</code>. I've only found <a href="https://stackoverflow.com/questions/40407342/resolving-paths-in-typescript-outdir">this question on SO</a>, but it's quite outdated and it does not lead to a clean solution.</p>
  
  <p>Do we have a way to transpile TS to JS in a way in which we are able to use <code>paths</code>?</p>