19 lines
373 B
TypeScript
19 lines
373 B
TypeScript
import { spawnSync } from 'node:child_process';
|
|
|
|
function main() {
|
|
const result = spawnSync(
|
|
process.execPath,
|
|
['--experimental-strip-types', 'src/db/seeds/crm-uat.seed.ts'],
|
|
{
|
|
stdio: 'inherit',
|
|
env: process.env
|
|
}
|
|
);
|
|
|
|
if (result.status !== 0) {
|
|
throw new Error(`[seed:uat] failed with exit code ${result.status ?? 1}`);
|
|
}
|
|
}
|
|
|
|
main();
|