title: Cannot generate the migration
body: <p>I have one project using typeorm to create the database. And when I execute the command to generate a migration to my project, it gives me the error</p>
  
  <p>I have the following orm configuration json file:</p>
  
  <pre><code> {
     "type": "postgres",
     "host": "localhost",
     "port": 5432,
     "username": "postgres",
     "password": "",
     "database": "postgres",
     "synchronize": true,
     "logging": false,
    "entities": [
      "src/entity/**/*.ts"
    ],
     "migrations": [
        "src/migration/**/*.ts"
     ],
     "subscribers": [
        "src/subscriber/**/*.ts"
     ],
     "cli": {
        "entitiesDir": "src/entity",
        "migrationsDir": "src/migration",
           "subscribersDir": "src/subscriber"
          }
      }
  </code></pre>
  
  <p>I have this User entity class:</p>
  
  <pre><code>import { Entity, PrimaryGeneratedColumn, Column, OneToMany } from "typeorm";
  import { Transaction } from "./Transactions";
  export type UserStatus = "Active" | "Inactive";
  
  @Entity()
  export class User {
  
  @PrimaryGeneratedColumn()
  id: number;
  
  @Column("varchar",{
      length:50
  })
  account_id: string;
  
  @Column("varchar",{
      length: 50
  })
  name: string;
  
  @Column("varchar",{
      length:50
  })
  email: string;
  
  @Column("varchar",{
      length:15
  })
  phone_number: string;
  
  @Column("varchar",{
      length:50
  })
  address: string;
  
  @Column({
      type: "enum",
      enum: ["Active", "Inactive"]
  }) status: UserStatus;
  
  
  @Column("varchar",{
      length:50
  })
  current_id: string;
  
  @OneToMany(type =&gt; Transaction, transaction =&gt; transaction.user)
  transactions: Transaction[];
  
  }
  </code></pre>
  
  <p>If I execute the command to generate a migration, it gives me the following error:</p>
  
  <pre><code>C:\Users\Firdaus97\source\repos\Cust Local payment\Cust Local payment\MyProject&gt;ts-node ./node_modules/.bin/typeorm migrations:generate -n
  C:\Users\Firdaus97\source\repos\Cust Local payment\Cust Local payment\MyProject\node_modules\.bin\typeorm:2
  basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
            ^^^^^^^
  
  SyntaxError: missing ) after argument list
      at Module._compile (internal/modules/cjs/loader.js:720:22)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:788:10)
      at Module.load (internal/modules/cjs/loader.js:643:32)
      at Function.Module._load (internal/modules/cjs/loader.js:556:12)
      at Function.Module.runMain (internal/modules/cjs/loader.js:840:10)
      at Object.&lt;anonymous&gt; (C:\Users\Firdaus97\AppData\Roaming\npm\node_modules\ts-node\src\bin.ts:158:12)
      at Module._compile (internal/modules/cjs/loader.js:777:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:788:10)
      at Module.load (internal/modules/cjs/loader.js:643:32)
      at Function.Module._load (internal/modules/cjs/loader.js:556:12)
  </code></pre>