diff --git a/deno.json b/deno.json index ee3acc7..9cc9614 100644 --- a/deno.json +++ b/deno.json @@ -28,7 +28,7 @@ }, "tasks": { "dev": "deno run -A scripts/dev.ts", - "dev:vite": "DENO_ENV=development PORT=6969 HOST=0.0.0.0 APP_BASE_PATH=./dist/dev PARSER_HOST=localhost PARSER_PORT=5000 deno run -A npm:vite dev", + "dev:server": "DENO_ENV=development PORT=6969 HOST=0.0.0.0 APP_BASE_PATH=./dist/dev PARSER_HOST=localhost PARSER_PORT=5000 deno run -A npm:vite dev", "dev:parser": "cd src/services/parser && dotnet watch run --urls http://localhost:5000", "build": "APP_BASE_PATH=./dist/build deno run -A npm:vite build && deno compile --no-check --allow-net --allow-read --allow-write --allow-env --allow-ffi --allow-run --allow-sys --target x86_64-unknown-linux-gnu --output dist/build/profilarr dist/build/mod.ts", "build:windows": "APP_BASE_PATH=./dist/build deno run -A npm:vite build && deno compile --no-check --allow-net --allow-read --allow-write --allow-env --allow-ffi --allow-run --allow-sys --target x86_64-pc-windows-msvc --output dist/windows/profilarr.exe dist/build/mod.ts", diff --git a/scripts/dev.ts b/scripts/dev.ts index 4b80a03..9ad29df 100644 --- a/scripts/dev.ts +++ b/scripts/dev.ts @@ -44,7 +44,7 @@ async function runParser() { return process.status; } -async function runVite() { +async function runServer() { const cmd = new Deno.Command('deno', { args: ['run', '-A', 'npm:vite', 'dev'], env: { @@ -74,4 +74,4 @@ console.log(`${colors.parser}[parser]${colors.reset} Starting .NET parser servic console.log(`${colors.server}[server]${colors.reset} Starting Vite dev server...`); console.log(''); -await Promise.all([runParser(), runVite()]); +await Promise.all([runParser(), runServer()]);