123456789101112131415import { spawnSync } from 'node:child_process'import path from 'node:path'
const root = path.resolve(import.meta.dir, '..')for (const args of [ ['tools/extract-assets.ts'], ['tools/dump-styles.ts'], ['tools/pieces.ts', '--scale', '1'], ['bench/slint/make-icons.ts'],]) { const result = spawnSync(process.execPath, args, { cwd: root, stdio: 'inherit', windowsHide: true }) if (result.error) throw result.error if (result.status !== 0) process.exit(result.status ?? 1)}