From 3941e7292d2b7c20ce27ca00f0c777c962bfa1ba Mon Sep 17 00:00:00 2001 From: Wind-Explorer Date: Thu, 3 Sep 2026 17:22:05 +0800 Subject: [PATCH] fix desktop CI failure & some CICD stuff --- .github/workflows/ci.yml | 3 +++ .github/workflows/release.yml | 3 +++ bun.lock | 5 +++++ package.json | 4 +++- vite.config.js | 1 - 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e5a274..bb7d249 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,9 @@ jobs: desktop: - 'src/**' - 'src-tauri/**' + - 'messages/**' + - 'project.inlang/**' + - 'scripts/check-i18n.mjs' - 'package.json' - 'bun.lock' - 'svelte.config.js' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edd3e6c..6d2f8a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,9 @@ jobs: desktop: - 'src/**' - 'src-tauri/**' + - 'messages/**' + - 'project.inlang/**' + - 'scripts/check-i18n.mjs' - 'package.json' - 'bun.lock' - 'svelte.config.js' diff --git a/bun.lock b/bun.lock index bb6d705..9408648 100644 --- a/bun.lock +++ b/bun.lock @@ -18,6 +18,7 @@ "@sveltejs/kit": "^2.9.0", "@sveltejs/vite-plugin-svelte": "^5.0.0", "@tauri-apps/cli": "^2", + "@types/node": "^26.4.1", "@types/three": "^0.185.4", "daisyui": "^5.7.21", "svelte": "^5.0.0", @@ -242,6 +243,8 @@ "@types/estree": ["@types/estree@1.0.9", "", {}, "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg=="], + "@types/node": ["@types/node@26.4.1", "", { "dependencies": { "undici-types": "~8.3.0" } }, "sha512-k97ENvZWtvA6yqz5/FS6a7duDgOPEeOQOc2iKS/nY6mX6qJUKtLnWzQS+Xj6tXweyj6ZcTAK2Qecetnvi9nCLA=="], + "@types/stats.js": ["@types/stats.js@0.17.4", "", {}, "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA=="], "@types/three": ["@types/three@0.185.4", "", { "dependencies": { "@dimforge/rapier3d-compat": "~0.12.0", "@tweenjs/tween.js": "~23.1.3", "@types/stats.js": "*", "@types/webxr": ">=0.5.17", "fflate": "~0.8.2", "meshoptimizer": "~1.1.1" } }, "sha512-gAsBIC07NIFrxjbf7tH2t71c38uulFfk/RFoC7FNBSjMRAQ8J1x/RBvusX0N5PJouaYFJawXQqfCQ0RKUx/1nA=="], @@ -380,6 +383,8 @@ "typescript": ["typescript@5.6.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw=="], + "undici-types": ["undici-types@8.3.0", "", {}, "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ=="], + "unplugin": ["unplugin@2.3.11", "", { "dependencies": { "@jridgewell/remapping": "^2.3.5", "acorn": "^8.15.0", "picomatch": "^4.0.3", "webpack-virtual-modules": "^0.6.2" } }, "sha512-5uKD0nqiYVzlmCRs01Fhs2BdkEgBS3SAVP6ndrBsuK42iC2+JHyxM05Rm9G8+5mkmRtzMZGY8Ct5+mliZxU/Ww=="], "urlpattern-polyfill": ["urlpattern-polyfill@10.1.0", "", {}, "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw=="], diff --git a/package.json b/package.json index 152bf1b..b6e68c5 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,9 @@ "dev": "vite dev", "build": "vite build", "preview": "vite preview", - "check": "bun run check:i18n && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check": "bun run check:i18n && bun run compile:i18n && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:i18n": "node scripts/check-i18n.mjs", + "compile:i18n": "paraglide-js compile --project ./project.inlang --outdir ./src/paraglide --strategy globalVariable preferredLanguage baseLocale --emit-ts-declarations", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "tauri": "tauri" }, @@ -27,6 +28,7 @@ "@sveltejs/kit": "^2.9.0", "@sveltejs/vite-plugin-svelte": "^5.0.0", "@tauri-apps/cli": "^2", + "@types/node": "^26.4.1", "@types/three": "^0.185.4", "daisyui": "^5.7.21", "svelte": "^5.0.0", diff --git a/vite.config.js b/vite.config.js index 997641a..d9ce264 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,7 +3,6 @@ import tailwindcss from "@tailwindcss/vite"; import { sveltekit } from "@sveltejs/kit/vite"; import { paraglideVitePlugin } from "@inlang/paraglide-js"; -// @ts-expect-error process is a nodejs global const host = process.env.TAURI_DEV_HOST; // https://vite.dev/config/