title: Load entities into TypeORM OrmConfig from Library project to Application Project
body: <p>I have two projects in my application:</p>
  <ol>
  <li>App/AppServer</li>
  <li>libraries/domain</li>
  </ol>
  <p>Below is the folder structure:</p>
  <pre><code>+---apps
  |   \---AppServer
  |       +---config
  |       +---node_modules
  |       +---src
  |       |   +---auth
  |       |   |   \---dto
  |       |   +---config
  |       |   +---masterDataHttp
  |       |   \---tasks
  |       |       +---dto
  |       |       \---pipes
  |       \---test
  +---libraries
  |   \---domain
  |       +---node_modules
  |       \---src
  |           \---masterData
  \---node_modules
  </code></pre>
  <p>I have some entities defined under libraries\domain\src\masterData and a few entities under apps\AppServer\src\tasks.</p>
  <p>My ormconfig is defined under apps\AppServer\src\config. It imports the entities using</p>
  <pre><code>__dirname + '/../**/*.entity.{js,ts}'
  </code></pre>
  <p>Using above we can import entities under apps\AppServer\src. But I am trying to figure out what best approach to import entities defined under libraries\domain\src.</p>
  <p>One option is import entities directly using</p>
  <pre><code>import { Entity1, Entity2 } from '@myproj/domain'
  </code></pre>
  <p>What is the recommended practice/approach to address this? TIA</p>