title: Missing required argument: dataSource
body: <p>I tried to generate migration files with typeorm version 0.3.6.I don't know why but in version 0.2.x it work with the command</p>
  <pre><code>npm run typeorm migration:generate -n &lt;file name&gt;
  </code></pre>
  <p>In newest version,I't so mess with me, I get another to another bugs , finally, I think I almost done but I continue get the error</p>
  <pre><code>Missing required argument: dataSource
  </code></pre>
  <p>this is scripts in my package.json</p>
  <pre><code>&quot;scripts&quot;: {
      &quot;server&quot;: &quot;nodemon dist/index.js&quot;,
      &quot;watch&quot;: &quot;tsc -w&quot;,
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,
      &quot;typeorm&quot;: &quot;ts-node ./node_modules/typeorm/cli.js&quot; 
    },
  </code></pre>
  <p>ormconfig.json</p>
  <pre><code>{
      &quot;type&quot;:&quot;postgres&quot;,
      &quot;host&quot;:&quot;localhost&quot;,
      &quot;port&quot;:5432,
      &quot;username&quot;:&quot;postgres&quot;,
      &quot;password&quot;:&quot;&quot;,
      &quot;database&quot;:&quot;test-deploy&quot;,
      &quot;entities&quot;:[&quot;dist/entities/*.js&quot;],
      &quot;migrations&quot;:[&quot;dist/migrations/*.js&quot;]
  }
  </code></pre>
  <p>dataSource.ts</p>
  <pre><code>export const dataSource = new DataSource({
      type:&quot;postgres&quot;,
      username: process.env.PG_USERNAME_DEV,
      password: process.env.PG_PASSWORD_DEV,
      database: &quot;memories&quot;,
      synchronize: false,
      logging: false,
      entities: [Admin,...],
      subscribers: [],
      migrations: [],
  })
  //For ApolloServer
  export const resolvers : NonEmptyArray&lt;Function&gt; =[AdminResolver,...]
  </code></pre>
  <p>My file structure like this</p>
  <pre><code>server
   src
     ...
   dist
     data-source.js
     entities/myEntity.js
  </code></pre>
  <p>and the command i use to generate migration</p>
  <pre><code> npm run typeorm migration:generate -n initial -d dist/data-source.js
  </code></pre>
  <p>Am i missing something? How can i fix it?</p>