chore(dev): bun install before dev/desktop so pulled deps are present (#800)
`bun desktop`/`bun dev` assumed node_modules was current, so after pulling a branch that adds a frontend dep (e.g. the shadcn migration's tw-animate-css / @radix-* packages) vite failed with "Can't resolve '<pkg>'" until the user manually ran bun install. CI never caught it (CI does a frozen install). predev/predesktop now run `bun install` first (a no-op ~25ms when up-to-date), so a fresh pull just works. Co-authored-by: mergetest <test@local> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
mergetest
Claude Opus 4.8
parent
cb70c2b1af
commit
836d69178c
+2
-2
@@ -11,9 +11,9 @@
|
||||
"dev:desktop": "TAURI_SKIP_BACKEND=1 bun run --cwd frontend desktop",
|
||||
"wait:api": "wait-on -t 300000 http-get://localhost:3900/system/info",
|
||||
"wait:frontend": "wait-on -t 120000 http://localhost:5173",
|
||||
"predev": "kill-port 3900 3901 || true",
|
||||
"predev": "bun install && (kill-port 3900 3901 || true)",
|
||||
"dev": "bun run setup:api && concurrently -n api,fe -c green,cyan --kill-others-on-fail \"bun run dev:api\" \"bun run dev:frontend\"",
|
||||
"predesktop": "kill-port 3900 3901 || true",
|
||||
"predesktop": "bun install && (kill-port 3900 3901 || true)",
|
||||
"desktop": "bun run setup:api && concurrently -n api,app -c green,magenta --kill-others-on-fail \"bun run dev:api\" \"bun run dev:desktop\"",
|
||||
"desktop-prod": "bun scripts/desktop-prod.mjs",
|
||||
"desktop-prod:run": "bun scripts/desktop-prod.mjs --skip-build",
|
||||
|
||||
Reference in New Issue
Block a user