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.js
New
shell
// CommonJS
ts-node ./node_modules/typeorm-extension/bin/cli.cjs
// ESM
ts-node-esm ./node_modules/typeorm-extension/bin/cli.mjs
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.