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

4 lines
65 B
JavaScript

#!/usr/bin/env node
require("ts-node").register()
import "./cli"