title: How to import local package in typescript monorepo
body: <p>Given a monorepo project.
  <code>
  --project_root/
    |--packageA/
       |--index.ts
       |--package.json
       |--foo/
          |--index.ts
    |--packageB/
       |--index.ts
       |--package.json
       |--bar/
          |--spam.ts
  </code>
  Normally, when you are in <code>packageA/index.ts</code> and you want to import <code>packageB/index.ts</code> you would do <code>import index from '../packageB'</code>, </p>
  
  <p>and when you are <code>packageA/foo/index.ts</code> and you want to import <code>packageB/index.ts</code> you need to move two directory up <code>import index from '../../packageB'</code></p>
  
  <p>The question is, is there a way to import like <code>import index from 'packageB</code> and for nested folder <code>import spam from 'packageB/bar/spam'</code>?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have uploaded a github repo to demo the issue
  <a href="https://github.com/jaimesangcap/lerna-ts-monorepo" rel="noreferrer">https://github.com/jaimesangcap/lerna-ts-monorepo</a></p>