From 929a22ea34c8419c6c8a2eab6bc670897470aea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Sun, 29 Dec 2024 17:49:36 +0000 Subject: [PATCH] chore: add --if-present for workspace-wide commands, prepare for testing --- .github/workflows/__quality_checks.yml | 7 +++---- package-lock.json | 5 ++--- package.json | 8 +++++--- packaging/tauri/package.json | 8 ++------ 4 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/__quality_checks.yml b/.github/workflows/__quality_checks.yml index 18efca9e9b2..9fd5fd1aa93 100644 --- a/.github/workflows/__quality_checks.yml +++ b/.github/workflows/__quality_checks.yml @@ -33,10 +33,9 @@ jobs: matrix: command: - lint + - test - check:types - include: - - workspace: frontend - command: analyze:cycles + - analyze:cycles steps: - name: Checkout ⬇️ @@ -56,7 +55,7 @@ jobs: run: npm ci --no-audit - name: Run ${{ matrix.command }} ⚙️ - run: npm run ${{ matrix.command }} ${{ matrix.workspace && format('-w {0}', matrix.workspace) || '' }} + run: npm run ${{ matrix.command }} commits_checks: name: Commit linting 💬✅ diff --git a/package-lock.json b/package-lock.json index a6226a4a18a..ccda9b9ccfa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2938,7 +2938,7 @@ "resolved": "frontend", "link": true }, - "node_modules/@jellyfin-vue/tauri": { + "node_modules/@jellyfin-vue/tauri-packaging": { "resolved": "packaging/tauri", "link": true }, @@ -13124,8 +13124,7 @@ } }, "packaging/tauri": { - "name": "@jellyfin-vue/tauri", - "version": "0.0.0", + "name": "@jellyfin-vue/tauri-packaging", "dependencies": { "@jellyfin-vue/frontend": "*" }, diff --git a/package.json b/package.json index 0b9306bb4fe..1c4a89e6f67 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,11 @@ "yarn": "yarn is not supported. Please use npm" }, "scripts": { - "lint": "npm run lint --workspaces", - "lint:fix": "npm run lint:fix --workspaces", - "check:types": "npm run check:types --workspaces" + "lint": "npm run lint -ws --if-present", + "lint:fix": "npm run lint:fix -ws --if-present", + "check:types": "npm run check:types -ws --if-present", + "analyze:cycles": "npm run analyze:cycles -ws --if-present", + "test": "npm run test -ws --if-present" }, "devDependencies": { "@eslint/config-inspector": "0.6.0", diff --git a/packaging/tauri/package.json b/packaging/tauri/package.json index 504452a5678..d63fe13f860 100644 --- a/packaging/tauri/package.json +++ b/packaging/tauri/package.json @@ -1,15 +1,11 @@ { - "name": "@jellyfin-vue/tauri", + "name": "@jellyfin-vue/tauri-packaging", "private": true, - "version": "0.0.0", "scripts": { "start": "npm run gen-icon && tauri dev", "gen-icon": "tauri icon ../../frontend/public/icon.svg", "build": "npm run gen-icon && tauri build", - "clean": "git clean -fxd", - "lint": "true", - "lint:fix": "true", - "check:types": "true" + "clean": "git clean -fxd" }, "dependencies": { "@jellyfin-vue/frontend": "*"