Add dev:windows to server instead and reference from root package.json

This commit is contained in:
Ola Hungerford
2025-02-19 08:26:14 -07:00
parent 8e06165d73
commit ed59974d65
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@
],
"scripts": {
"dev": "concurrently \"cd client && npm run dev\" \"cd server && npm run dev\"",
"dev:windows": "concurrently \"cd client && npm run dev\" \"cd server && tsx watch --clear-screen=false src/index.ts < NUL\"",
"dev:windows": "concurrently \"cd client && npm run dev\" \"cd server && npm run dev:windows",
"build-server": "cd server && npm run build",
"build-client": "cd client && npm run build",
"build": "npm run build-server && npm run build-client",

View File

@@ -16,7 +16,8 @@
"scripts": {
"build": "tsc",
"start": "node build/index.js",
"dev": "tsx watch --clear-screen=false src/index.ts"
"dev": "tsx watch --clear-screen=false src/index.ts",
"dev:windows": "tsx watch --clear-screen=false src/index.ts < NUL"
},
"devDependencies": {
"@types/cors": "^2.8.17",