task-fic-display
This commit is contained in:
18
src/db/seeds/uat.seed.ts
Normal file
18
src/db/seeds/uat.seed.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user