diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 0826de6..c3235f1 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -25,7 +25,7 @@ jobs: deno-version: v2.x - name: Run checks - run: deno task check + run: deno task check:deno lint: runs-on: ubuntu-latest @@ -40,7 +40,7 @@ jobs: deno-version: v2.x - name: Run linter - run: deno task lint + run: deno task lint:deno build: runs-on: ubuntu-latest @@ -55,4 +55,4 @@ jobs: deno-version: v2.x - name: Build - run: deno task build + run: deno task build:deno diff --git a/deno.json b/deno.json index 7dd3970..5c686ad 100644 --- a/deno.json +++ b/deno.json @@ -9,11 +9,17 @@ "tasks": { "dev": "deno run -A npm:vite dev", "build": "deno run -A npm:vite build", - "check": "deno check src/ && deno task check:tauri", + + "check": "deno task check:deno && deno task check:tauri", + "check:deno": "deno check src/", "check:tauri": "cd src-tauri/ && cargo check && cd ..", - "lint": "deno lint && deno fmt --check && deno task lint:tauri", + + "lint": "deno task lint:deno && deno task lint:tauri", + "lint:deno": "deno lint && deno fmt --check", "lint:tauri": "cd src-tauri/ && cargo fmt --check && cd ..", - "fmt": "deno lint --fix && deno fmt && deno task fmt:tauri", + + "fmt": "deno task fmt:deno && deno task fmt:tauri", + "fmt:deno": "deno lint --fix && deno fmt", "fmt:tauri": "cd src-tauri/ && cargo fmt && cd .." }, "compilerOptions": {