This commit is contained in:
2026-06-25 12:41:33 -05:00
parent 8c60e154a7
commit 56e34475fc
16 changed files with 113 additions and 46 deletions

View File

@@ -1,10 +1,11 @@
import { spawn } from 'node:child_process';
import path from 'path';
const mode = process.argv[2] || 'development';
const watch = process.argv.includes('--watch');
const args = watch
? ['node_modules/nodemon/bin/nodemon.js', 'server/index.js']
: ['server/index.js'];
? [path.join('node_modules', 'nodemon', 'bin', 'nodemon.js'), path.join('server', 'index.js')]
: [path.join('server', 'index.js')];
const child = spawn(process.execPath, args, {
stdio: 'inherit',