From 7b40aed43b92c83d8419f32fb018ec3a0d88859e Mon Sep 17 00:00:00 2001 From: Ola Hungerford Date: Wed, 19 Feb 2025 08:08:28 -0700 Subject: [PATCH] Add dev:windows command --- README.md | 7 ++----- package.json | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9350f38..b23df7b 100644 --- a/README.md +++ b/README.md @@ -49,12 +49,9 @@ npm run dev ``` > **Note for Windows users:** -> On Windows, you may experience an issue where the proxy server fails to start when running the `npm run dev` command. This is due to TSX's watch mode not properly handling standard input on Windows. -> -> To work around this, you can append `< NUL` to the `dev` script in `/server/package.json`: -> +> On Windows, use the following command instead: > ```bash -> tsx watch --clear-screen=false src/index.ts < NUL +> npm run dev:windows > ``` Production mode: diff --git a/package.json b/package.json index 01b2158..257ee93 100644 --- a/package.json +++ b/package.json @@ -22,6 +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\"", "build-server": "cd server && npm run build", "build-client": "cd client && npm run build", "build": "npm run build-server && npm run build-client",