Simplify Makefile TAURI invocation to bunx tauri #13

Merged
parkerhdavis merged 1 commit from simplify-tauri-invocation into main 2026-04-21 21:08:35 -06:00
parkerhdavis commented 2026-04-21 21:08:30 -06:00 (Migrated from github.com)

Summary

Collapses the Makefile's TAURI variable from the direct-path JS invocation (bun ../../../node_modules/@tauri-apps/cli/tauri.js) to bunx tauri on both the Windows and *nix sides. @tauri-apps/cli already lives in the root package.json devDependencies, so Bun hoists the tauri bin to <repo>/node_modules/.bin/tauri and bunx walks up from any cwd to find it.

The old direct-path trick was inherited from Tauri-era muscle memory (Bun's hoisting guarantees only apply to the workspace the package is declared in; when the CLI lives in apps/<name>/frontend/package.json, the bin hoists only as far as apps/<name>/frontend/node_modules/.bin/ and bunx tauri fails from the backend or repo root). Since we already put the CLI at root during the recent restructure, the trick is unnecessary.

The Project Structure Study's "Tauri variant" section (line 214) already captures the general principle for any Tauri-on-the-skeleton shell — no doc update needed here.

Test plan

  • bunx tauri --version resolves from repo root and from apps/desktop/backend/
  • make check still passes
  • make dev still opens a Tauri window (tested by reviewer)
  • make build-linux still produces the full bundle set (tested post-merge)
## Summary Collapses the Makefile's `TAURI` variable from the direct-path JS invocation (`bun ../../../node_modules/@tauri-apps/cli/tauri.js`) to `bunx tauri` on both the Windows and *nix sides. `@tauri-apps/cli` already lives in the root `package.json` devDependencies, so Bun hoists the `tauri` bin to `<repo>/node_modules/.bin/tauri` and `bunx` walks up from any cwd to find it. The old direct-path trick was inherited from Tauri-era muscle memory (Bun's hoisting guarantees only apply to the workspace the package is declared in; when the CLI lives in `apps/<name>/frontend/package.json`, the bin hoists only as far as `apps/<name>/frontend/node_modules/.bin/` and `bunx tauri` fails from the backend or repo root). Since we already put the CLI at root during the recent restructure, the trick is unnecessary. The Project Structure Study's "Tauri variant" section (line 214) already captures the general principle for any Tauri-on-the-skeleton shell — no doc update needed here. ## Test plan - [x] `bunx tauri --version` resolves from repo root and from `apps/desktop/backend/` - [x] `make check` still passes - [ ] `make dev` still opens a Tauri window (tested by reviewer) - [ ] `make build-linux` still produces the full bundle set (tested post-merge)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
parker/seria!13
No description provided.