Update package.json scripts to prefer tauri

This commit is contained in:
Hydroxycarbamide 2022-09-03 14:07:17 +02:00
parent b1c271770d
commit 3ef24c67e9
2 changed files with 6 additions and 4 deletions

View file

@ -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"
},

View file

@ -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"
},