ci: run svelte-kit sync before svelte-check
Deploy / verify (push) Successful in 41s
Deploy / deploy (push) Successful in 1m25s

- Replace postinstall API gen with svelte-kit sync prepare hook.
- CI explicitly syncs before typecheck so .svelte-kit/tsconfig.json exists.
This commit is contained in:
Peter Meier
2026-04-17 22:03:44 +02:00
parent 2fef91a548
commit d28a55a70a
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -33,6 +33,8 @@ jobs:
cache: npm
- name: Install deps
run: npm ci
- name: SvelteKit sync
run: npx svelte-kit sync
- name: Typecheck
run: npx svelte-check --threshold error
+1 -1
View File
@@ -6,7 +6,7 @@ WORKDIR /app
# Erst nur package*.json besseres Layer-Caching
COPY package*.json ./
# postinstall versucht CMS-Types zu generieren (|| true → unkritisch ohne CMS)
# prepare läuft svelte-kit sync (|| true → unkritisch wenn Config fehlt)
RUN npm ci
COPY . .
+1 -1
View File
@@ -8,7 +8,7 @@
"preview": "vite preview",
"start": "node build",
"generate:api-types": "node scripts/generate-api-types.mjs",
"postinstall": "node scripts/generate-api-types.mjs || true"
"prepare": "svelte-kit sync || true"
},
"devDependencies": {
"@iconify-json/mdi": "^1.2.3",