From bbee47cfb162b24de21a26f287ba2bd6696ff06f Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Thu, 20 Aug 2026 02:42:00 -0700 Subject: [PATCH] fix(studio): spell the dev server's bun invocation with vite's real path "bun --bun vite" does NOT keep vite on bun. Measured: it resolves the bare name to node_modules/.bin/vite and execs that shim, whose shebang is #!/usr/bin/env node -- so `bun run studio` still produced bun --bun vite --host 127.0.0.1 -> node .../packages/studio/node_modules/.bin/vite --host 127.0.0.1 and dev-mode renders still died on the producer's TypeScript source. Passing the path directly is what --bun actually applies to. Verified end to end after the change: `bun run studio` runs as `bun --bun ./node_modules/.bin/vite --host 127.0.0.1`, and a real 40s / 1200-frame render of the audio-real fixture (9 audio tracks, two groups) completes through the studio's own /render endpoint -- 1.28 MB mp4, hasAudio true, no "Cannot find module .../renderOrchestrator.js". --- packages/studio/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/studio/package.json b/packages/studio/package.json index 58db9d097..30740a332 100644 --- a/packages/studio/package.json +++ b/packages/studio/package.json @@ -45,7 +45,7 @@ "types": "./dist/index.d.ts" }, "scripts": { - "dev": "bun --bun vite --host 127.0.0.1", + "dev": "bun --bun ./node_modules/.bin/vite --host 127.0.0.1", "build": "vite build && tsup", "typecheck": "tsc --noEmit", "test": "vitest run",