Solution for nested directories
For example: for project https://github.com/nestjsx/crud
You need to be at same level where orm config is
cd /var/www/crud/integration/crud-typeorm
ts-node ./../../node_modules/typeorm/cli.js migration:run -d=orm.postgres.ts
That work for me for nested directory