()
| 8 | const cwd = resolve(dirname(fileURLToPath(import.meta.url)), '..') |
| 9 | |
| 10 | function runBuild() { |
| 11 | const result = spawnSync(npmCommand, ['run', 'build'], { |
| 12 | cwd, |
| 13 | stdio: 'inherit', |
| 14 | }) |
| 15 | |
| 16 | if (result.status !== 0) { |
| 17 | process.exit(result.status ?? 1) |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | async function run() { |
| 22 | runBuild() |