build: run dev scripts via direct node entry points

The project path contains an ampersand, which breaks the npm cmd shims
in node_modules/.bin. The dev scripts now call the package entry files
directly so npm run dev works on Windows from this path.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qot1pYSGusNVFKWK2bG82
This commit is contained in:
Sucukdeluxe
2026-09-05 12:46:59 +02:00
co-authored by Claude Fable 5.1
parent 2ca78fd299
commit 2eb4eb5769
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -6,11 +6,11 @@
"author": "Sucukdeluxe",
"license": "MIT",
"scripts": {
"dev": "concurrently -k \"npm:dev:main:watch\" \"npm:dev:renderer\" \"npm:dev:electron\"",
"dev:renderer": "vite --port 5180 --strictPort",
"dev": "node node_modules/concurrently/dist/bin/concurrently.js -k \"npm:dev:main:watch\" \"npm:dev:renderer\" \"npm:dev:electron\"",
"dev:renderer": "node node_modules/vite/bin/vite.js --port 5180 --strictPort",
"visual:dev": "vite --config tests/visual/vite.config.mts --host 127.0.0.1 --port 5174 --strictPort",
"dev:main:watch": "tsup src/main/main.ts src/preload/preload.ts --out-dir build/main --format cjs --target node20 --external electron --sourcemap --watch",
"dev:electron": "wait-on tcp:5180 file:build/main/main/main.js && cross-env NODE_ENV=development DEV_SERVER_PORT=5180 tsx scripts/run-dev-electron.ts",
"dev:main:watch": "node node_modules/tsup/dist/cli-default.js src/main/main.ts src/preload/preload.ts --out-dir build/main --format cjs --target node20 --external electron --sourcemap --watch",
"dev:electron": "node node_modules/wait-on/bin/wait-on tcp:5180 file:build/main/main/main.js && node node_modules/cross-env/src/bin/cross-env.js NODE_ENV=development DEV_SERVER_PORT=5180 node node_modules/tsx/dist/cli.mjs scripts/run-dev-electron.ts",
"build": "npm run build:main && npm run build:renderer",
"build:main": "tsup src/main/main.ts src/preload/preload.ts --out-dir build/main --format cjs --target node20 --external electron --sourcemap",
"build:renderer": "vite build",