// 同时启动展示端(5173)和管理端(5174/admin/);Ctrl+C 一起退出。 import { spawn } from 'node:child_process' const children = ['display', 'admin'].map((name) => spawn('npm', ['run', 'dev', '-w', name], { stdio: 'inherit', shell: true })) const stop = () => children.forEach((c) => c.kill()) process.on('SIGINT', stop) process.on('exit', stop)