Upgrading to v3
This the migration guide for upgrading from v2 to v3.
CLI
File Path
Old
shell
ts-node ./node_modules/typeorm-extension/dist/cli/index.jsNew
shell
ts-node ./node_modules/typeorm-extension/bin/cli.cjsNote: from v4 onwards the package is ESM-only. Invoke
bin/cli.mjsvia a TypeScript-aware loader such astsx. See the v4 migration guide.
General
- The seeding command seed has been renamed to seed:run.
- The seeding option --seed has been renamed to --name.
- The seeding option --root now corresponds to the root directory of the project.
- The --dataSource option now can contain the relative path and the name to the data-source.
DataSource
- Drop support for ormconfig. The DataSource finder will no longer look for this kind of configuration.