chore: build frontend assets so tauri context generates cleanly

The build script now runs 'routify build' before svelte-check so the
generated routes module exists when type-checking. vite build still
runs last to produce dist/client/, which tauri::generate_context!
needs at compile time for jarvis-gui.
This commit is contained in:
Bossiara13 2026-04-22 17:57:29 +03:00
parent 893a83d197
commit fb5c096327
2 changed files with 1 additions and 20 deletions

View file

@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "svelte-check --ignore '.routify' --no-tsconfig && vite build",
"build": "routify build && svelte-check --ignore '.routify' --no-tsconfig && vite build",
"preview": "vite preview",
"check": "svelte-check --ignore '.routify' --tsconfig ./tsconfig.json",
"tauri": "tauri"