Document TypeScript migrations with the Nub loader
Author: colinhacksCreated Sep 5, 2026Updated Sep 5, 2026
TypeORM documents the ts-node CLI wrappers for TypeScript migrations. The ordinary CLI also runs a verified ESM TypeScript data source and migration through a Node preload.
node --import @nubjs/loader ./node_modules/typeorm/cli.js migration:run -d src/data-source.tsThe documentation should preserve type checking and describe the decorator metadata requirement for inferred column types.
Source: typeorm/typeorm