mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 05:18:11 +00:00
IAM, package, luggage, app health, rate limit, and more
This commit is contained in:
20
tmp-iam-inspect/package/scripts/typeorm-cli.cjs
Normal file
20
tmp-iam-inspect/package/scripts/typeorm-cli.cjs
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env node
|
||||
const { spawnSync } = require("child_process");
|
||||
const path = require("path");
|
||||
|
||||
const tsNodeBin = require.resolve("ts-node/dist/bin.js");
|
||||
const typeormCli = require.resolve("typeorm/cli.js");
|
||||
const dataSource = path.resolve(__dirname, "../src/typeorm.config.ts");
|
||||
|
||||
const args = [
|
||||
tsNodeBin,
|
||||
"-r",
|
||||
"tsconfig-paths/register",
|
||||
typeormCli,
|
||||
"-d",
|
||||
dataSource,
|
||||
...process.argv.slice(2),
|
||||
];
|
||||
|
||||
const result = spawnSync(process.execPath, args, { stdio: "inherit" });
|
||||
process.exit(result.status ?? 1);
|
||||
Reference in New Issue
Block a user