title: TypeORM configuration
body: <p>I'm writing a Typescript NodeJs server.</p>
  <p>I use TypeORM and for work it needs a config file with two arrays of paths or functions to entities and migrations.</p>
  <p>Right now it looks like</p>
  <pre><code>{
    subscribers: ['build/subscriber/*.js'],
    migrations: ['build/migration/*.js'],
  }
  </code></pre>
  <p>When I'm starting my app it'll be transpile with tsc and create a build folder with js files. And in these case everything works fine.</p>
  <p>But TypeORM have a CLI tool, and I want use it for creating migrations. But I don't want to transpile all projects just to create migration. I'd run the CLI command with ts-node and use ts files. But without transpiration &quot;build/subscriber/*.js&quot; doesn't exist.</p>
  <p>Can I do something to use TypeORM CLI without transpiration the whole project?</p>
  <p>P.s. If I change config paths to</p>
  <pre><code>{
      subscribers: ['src/subscriber/*.ts'],
      migrations: ['src/migration/*.ts'],
  }
  </code></pre>
  <p>The project will stop running.
  May there exists a way to see in code transpiled them or not to implement something like optional paths</p>
  <pre><code>{
      subscribers: isTranspiled ?['build/subscriber/*.js'] : ['src/subscriber/*.ts'],
      migrations: isTranspiled ? ['build/migration/*.js'] : ['src/migration/*.ts'],
  }
  </code></pre>