How configure TypeORM ormconfig.json file to parse Entities from js dist folder or ts src folder?

I'd suggest using an ormconfig.js instead of the JSON version and use an environment variable or similar to switch between the two configs. eg; something like the following stripped down example.

const srcConfig = {
  "entities": [
    "src/entities/**/*.ts"
  ],
}

const distConfig = {
  "entities": [
    "dist/entities/**/*.js"
  ],
}

module.exports = process.env.TS_NODE ? srcConfig : distConfig;

Note you'll need to set the TS_NODE env var somewhere; I did notice there's a PR not yet merged that will do it.