2 Commits

Author SHA1 Message Date
Gilad S
c5dfc11ea7
fix: broken shebang parameters of cli-ts-node-commonjs and cli-ts-node-esm on some linux distros (#8821)
Changed to nodejs workaround instead of relying on shebang parameters, as they work a bit differently on some linux distros, and using the "-S" parameter breaks the CLI on Windows

Closes #8818
2022-03-29 10:29:02 +05:00
Gilad S
05fc744469
feat: add typeorm CLI variations that include ts-node (#8776)
* feat: add typeorm CLI variations that include `ts-node`

Add `typeorm-ts-node-commonjs` and `typeorm-ts-node-esm` CLI commands.
This removes the need to manually write `node --require ts-node/register ./node_modules/typeorm/cli.js` or `node --loader ts-node/esm ./node_modules/typeorm/cli.js` in order to use TypeORM CLI without transpiling the code in advance.

* style: formatting
2022-03-22 22:21:14 +05:00