diff --git a/package.json b/package.json index aa96de9..d8039a3 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,10 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite", - "build": "vite build", + "dev": "tauri dev", + "build": "tauri build", + "front-dev": "vite", + "front-build": "vite build", "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json" }, diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 3b911ba..31b69be 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,8 +1,8 @@ { "$schema": "../node_modules/@tauri-apps/cli/schema.json", "build": { - "beforeBuildCommand": "npm run build", - "beforeDevCommand": "npm run dev", + "beforeBuildCommand": "npm run front-build", + "beforeDevCommand": "npm run front-dev", "devPath": "http://localhost:5173", "distDir": "../dist" },