gongxiangp2/scripts/initialize-salary-grade-schemes.ts

7 lines
419 B
TypeScript

/** Same guarded audit/apply/reconcile/restore tool for isolated local and production. */
import { spawnSync } from 'node:child_process'
import { resolve } from 'node:path'
const result = spawnSync(process.execPath, [resolve('scripts/maintain-salary-grade-configuration.cjs'), ...process.argv.slice(2)], { stdio: 'inherit', env: process.env })
if (result.error) throw result.error
process.exitCode = result.status ?? 1