Add dev:windows command

This commit is contained in:
Ola Hungerford
2025-02-19 08:08:28 -07:00
parent 39970db604
commit 7b40aed43b
2 changed files with 3 additions and 5 deletions

View File

@@ -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:

View File

@@ -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",