Skip to content

chore(toolpath-desktop): auto-install frontend deps in tauri dev/build#29

Merged
eliothedeman merged 1 commit into
mainfrom
eliot/quizzical-morse-fd0637
Apr 21, 2026
Merged

chore(toolpath-desktop): auto-install frontend deps in tauri dev/build#29
eliothedeman merged 1 commit into
mainfrom
eliot/quizzical-morse-fd0637

Conversation

@eliothedeman
Copy link
Copy Markdown
Collaborator

Summary

Fresh checkouts of this repo (including new worktrees) fail cargo tauri dev with:

Could not resolve '@sveltejs/vite-plugin-svelte' in vite.config.ts

because crates/toolpath-desktop/frontend/node_modules/ is gitignored and there's no step that installs it. You had to remember to cd frontend && bun install first.

This chains bun install into the beforeDevCommand and beforeBuildCommand in tauri.conf.json, so the first run works out of the box. It's a no-op when the lockfile is already satisfied.

Test plan

  • cargo tauri dev from a fresh worktree with no node_modules/ succeeds
  • cargo tauri build still works

Fresh checkouts fail `cargo tauri dev` because the frontend
`node_modules/` is gitignored. Chain `bun install` into the
beforeDevCommand/beforeBuildCommand so the first run works out
of the box; it's a no-op when deps are already current.
@github-actions
Copy link
Copy Markdown

🔍 Preview deployed: https://b696b45c.toolpath.pages.dev

@eliothedeman eliothedeman merged commit 6ab35d7 into main Apr 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant