// Runs the bridge (with the demo console) and the Vite dev server together. import { spawn } from 'node:child_process'; const children = [ spawn(process.execPath, ['bridge/server.mjs', '--demo'], { stdio: 'inherit' }), spawn(process.platform === 'win32' ? 'npx.cmd' : 'npx', ['vite'], { stdio: 'inherit' }), ]; const stop = () => children.forEach((c) => c.kill()); process.on('SIGINT', stop); process.on('SIGTERM', stop); children.forEach((c) => c.on('exit', stop));