typeorm/src/cli-ts-node-esm.ts
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

3 lines
70 B
JavaScript

#!/usr/bin/env node --loader ts-node/esm --no-warnings
import "./cli"