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:
parent
893a83d197
commit
fb5c096327
2 changed files with 1 additions and 20 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue