When trying to run the TypeORM Migrations, either automatically in the application startup or manually via the TypeORM CLI, only the migrations table gets created (and it stays empty). The migration files themselves are not being executed.
Here is my tsconfig.json
{ "compilerOptions": { "module": "commonjs", "declaration": true, "removeComments": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, "target": "es2017", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", "incremental": true } } Here is my package.json
... "typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js", ... Here is my ormconfig.json
... "entities": ["dist/**/*.entity{.ts,.js}"], "synchronize": true, "migrationsRun": true, "migrations ": ["dist/migrations/*{.ts,.js}"], "cli": { "migrationsDir": "src/migrations" } ... The migration files are being created through the TypeORM CLI and they are to populate some tables (insert statements). They are not related to changes in the database schema.
Please, can anyone help me make it work?
npx typeorm migration:run"migrations": ["dist/migrations/*{.ts,.js}"]and the files (.ts and .js) are all there.