From 5646e739c21a050868622f04bcb15f070864d553 Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 14 May 2026 12:07:15 +0200 Subject: [PATCH] fix(ci): run svelte-kit sync before lint to fix cache-hit tsconfig miss MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the node_modules cache hits, npm ci is skipped and the prepare lifecycle (svelte-kit sync) never runs. frontend/tsconfig.json extends .svelte-kit/tsconfig.json which only exists after svelte-kit sync — so ESLint fails at tsconfig resolution on every cache-warm run. Adding an unconditional svelte-kit sync step after Paraglide compile and before Lint ensures .svelte-kit/tsconfig.json is always present regardless of cache state. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4d7b7764..3f82758d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -33,6 +33,10 @@ jobs: run: npx @inlang/paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide working-directory: frontend + - name: Sync SvelteKit + run: npx svelte-kit sync + working-directory: frontend + - name: Lint run: npm run lint working-directory: frontend -- 2.49.1