Simplify Makefile TAURI invocation to bunx tauri #13
Loading…
Reference in a new issue
No description provided.
Delete branch "simplify-tauri-invocation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Collapses the Makefile's
TAURIvariable from the direct-path JS invocation (bun ../../../node_modules/@tauri-apps/cli/tauri.js) tobunx taurion both the Windows and *nix sides.@tauri-apps/clialready lives in the rootpackage.jsondevDependencies, so Bun hoists thetauribin to<repo>/node_modules/.bin/tauriandbunxwalks 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 asapps/<name>/frontend/node_modules/.bin/andbunx taurifails 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 --versionresolves from repo root and fromapps/desktop/backend/make checkstill passesmake devstill opens a Tauri window (tested by reviewer)make build-linuxstill produces the full bundle set (tested post-merge)