From 8dfef52bc0ad3efe50cee07af92924cabb67cdaa Mon Sep 17 00:00:00 2001 From: eduardruzga Date: Mon, 28 Oct 2024 11:00:39 +0200 Subject: [PATCH] Try to fix start for windows --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index edb2b8dad..e42d6e2f0 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,10 @@ "test:watch": "vitest", "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .", "lint:fix": "npm run lint -- --fix", - "start": "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings --ip 0.0.0.0 --port 3000", + "start": "sh -c '[[ \"$(uname -s)\" == *NT* ]] && wrangler pages dev ./build/client --ip 0.0.0.0 --port 3000 || (bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings --ip 0.0.0.0 --port 3000)'", "typecheck": "tsc", "typegen": "wrangler types", - "preview": "pnpm run build && pnpm run start" + "preview": "npm run build && npm run start" }, "engines": { "node": ">=18.18.0"