import { ConnectionOptions } from 'typeorm' ; const config = { type : 'postgres' , host : 'localhost' , port : 5432 , username : 'postgres' , password : 'pwd' , database : 'migrationexample' , entities : [ __dirname + '/**/*.entity{.ts,.js}' ] , synchronize : false , migrationsRun : true , logging : true , logger : 'file' , migrations : [ __dirname + '/migrations/**/*{.ts,.js}' ] , cli : { migrationsDir : 'src/migrations' , } , } ; export = config ;