title: Error when creating a new migration using TypeORM and NestJs with Typescript
body: <p>I have a node application using typescript and I'm trying to create a new migration, following the documentation of the TypeORM.</p>
  <p>First I installed the <a href="https://typeorm.io/#/using-cli/installing-cli" rel="noreferrer">CLI</a>, set up my connection options like <a href="https://typeorm.io/#/migrations/creating-a-new-migration" rel="noreferrer">this</a> and when I try to run this command:</p>
  <p><code>npm run typeorm migration:create -- -n migrationNameHere</code>
  I get the following error:</p>
  <blockquote>
  <p>Error during migration creation: TypeError: Cannot read property 'startsWith' of undefined
  at Object. (...\src\commands\MigrationCreateCommand.ts:62:37)
  at step (...\node_modules\typeorm\node_modules\tslib\tslib.js:141:27)
  at Object.throw (...\node_modules\typeorm\node_modules\tslib\tslib.js:122:57)
  at rejected (...\node_modules\typeorm\node_modules\tslib\tslib.js:113:69) npm ERR!
  code ELIFECYCLE npm ERR! errno 1 npm ERR! backend@0.0.1 typeorm: node
  --require ts-node/register ./node_modules/typeorm/cli.js &quot;migration:create&quot; &quot;-n&quot; &quot;migrationNameHere&quot;` npm ERR! Exit status 1</p>
  </blockquote>
  <p>These are my nest dependencies in package.json:</p>
  <p>My node version is <strong>v12.14.1</strong>, nestjs is <strong>7.0.0</strong> and nestjs/typeorm is <strong>7.1.3</strong></p>
  <p>My app.module.ts is like this:</p>
  <pre><code>TypeOrmModule.forRoot({
        type: 'mysql',
        host: database().host,
        port: parseInt(database().port),
        username: database().username,
        password: database().password,
        database: database().schema,
        entities: [Question, QuestionOption],
        migrations: ['migration/*.js'],
        cli: {
          migrationsDir: 'migration'
        },
        synchronize: true,
      })
  </code></pre>
  <p>Does anybody has ever faced this sort of problem?</p>