import { spawn } from 'node:child_process'; import path from 'node:path'; console.log('🚀 Starting Luxe Monorepo Development Environment...'); const services = [ { name: 'Gateway', command: 'npx', args: ['tsx', 'watch', 'services/gateway/src/index.ts'] }, { name: 'Notifications', command: 'npx', args: ['tsx', 'watch', 'services/notification-service/src/index.ts'] }, ]; services.forEach((service) => { const proc = spawn(service.command, service.args, { stdio: 'inherit', shell: true, env: { ...process.env }, }); proc.on('close', (code) => { console.log(`[${service.name}] process exited with code ${code}`); }); });