UNPKG

watercooler

Version:

A beautiful 3D visualization of your mailbox messages as a village of coworkers

19 lines (14 loc) 460 B
#!/usr/bin/env node import { spawn } from 'child_process'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const serverPath = join(__dirname, '..', 'dist', 'server.js'); const child = spawn('node', [serverPath, ...process.argv.slice(2)], { stdio: 'inherit', shell: false }); child.on('exit', (code) => { process.exit(code ?? 0); });