fix(build): invoke tauri CLI directly with explicit config to target desktop app by GCWing · Pull Request #220 · GCWing/BitFun
Summary
- Use absolute path to
ode_modules/.bin/tauri instead of pnpm exec tauri to avoid pnpm workspace root hijacking Tauri's project discovery - Pass --config with absolute path to src/apps/desktop/tauri.conf.json so Tauri always targets the desktop app, not BitFun-Installer
- Remove ype-check:web from �eforeDevCommand to prevent deadlock where tsc blocks dev server startup while Tauri waits for localhost:1422
Root Cause
PR #219 changed
px tauri dev to pnpm exec tauri dev. When run via pnpm exec, Tauri CLI searches for a src-tauri/ directory from the pnpm workspace root, finding BitFun-Installer/src-tauri/ instead of the main desktop app.
Test plan
- Run pnpm desktop:dev and verify it starts the main BitFun desktop app, not the installer