Skip to content

Commit c24e4e3

Browse files
author
Marc Seiler
committed
ci(docs): generate SvelteKit tsconfig before building the docs site
Astro 7 / Vite 8 walks tsconfig files up to the git root, and the app's tsconfig.json extends .svelte-kit/tsconfig.json, which only exists after svelte-kit sync. Run it in the deploy-docs job so the docs build no longer fails with 'Tsconfig not found'.
1 parent 21f4470 commit c24e4e3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/deploy-docs.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ jobs:
8383
with:
8484
bun-version-file: package.json
8585

86+
# Vite 8 (via Astro 7) discovers tsconfig files up to the git root. The
87+
# app's root tsconfig.json extends a SvelteKit-generated file, so make
88+
# sure it exists before building the docs.
89+
- name: Generate SvelteKit tsconfig
90+
run: |
91+
bun install --frozen-lockfile
92+
bunx svelte-kit sync
93+
8694
- name: Install docs dependencies
8795
working-directory: docs
8896
run: bun install --frozen-lockfile

0 commit comments

Comments
 (0)