title: Monorepo with paths from Typescript is not working
body: <p>I have monorepo (yarn workpaces) with following file structure:</p>
  
  <pre><code>├── client                (workspace @client)
  │   ├── package.json
  │   └── tsconfig.json     (extended tsconfig)
  ├── server                (workspace @server)
  │   ├── getData.ts
  │   ├── package.json
  │   └── tsconfig.json     (extended tsconfig)
  ├── shared
  │   └── sanitizeData.ts
  ├── package.json          (monorepo root)
  └── tsconfig.json         (base tsconfig)
  </code></pre>
  
  <p>And I want to use function from <code>shared/sanitizeData.ts</code> in <code>server/getData.ts</code></p>
  
  <p>I tried to use <code>paths</code> from Typescript, it looks pretty straightforward according to docs, but I'm doing something wrong:</p>
  
  <pre><code>error TS2307: Cannot find module '@shared/sanitizeData'.
  </code></pre>
  
  <p><code>server/tsconfig.json</code>:</p>
  
  <pre><code>{
    "extends": "../tsconfig.json",
    "compilerOptions": {
      "baseUrl": ".",
      "rootDir": "../",
      "outDir": "build",
      "paths": {
        "@shared/*": ["shared/*"]
      }
    }
  }
  </code></pre>
  
  <p><code>server/getData.js</code>:</p>
  
  <pre class="lang-js prettyprint-override"><code>import { sanitizeData } from "@shared/sanitizeData";
  </code></pre>
  
  <p>Could you help me please?</p>