Commit f8ed24b
fix(tsconfig): drop deprecated baseUrl so shared-ui components compile under TypeScript 6
TypeScript 6 deprecates baseUrl (TS5101), and svelte-preprocess promotes
that deprecation into a hard build error. It only bit the two apps that
import packages/shared-ui components - shared-ui has no tsconfig of its
own, so svelte-preprocess walks up to the ROOT tsconfig (the one with
baseUrl) when compiling ConfidencePill.svelte and
ToggleHeader__PromptOrPackage--Icons.svelte, failing the shell and
response-reviewer dev builds. Apps that don't pull in shared-ui compiled
against their own baseUrl-free tsconfigs and never noticed.
Fix is the TS6-idiomatic one, not the ignoreDeprecations escape hatch:
remove baseUrl and let paths resolve relative to the tsconfig, which the
root config's ./-prefixed paths already did. splash/tsconfig.json gets
the same treatment with its paths entries ./-prefixed to match.
Verified: shell and response-reviewer rsbuild builds are clean, and the
tree-wide typecheck stays green.
Files changed:
- tsconfig.json
- splash/tsconfig.json
TS6 upgrade fallout from 68670bc, surfaced by the first dev-server run
since.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 265f391 commit f8ed24b
2 files changed
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
0 commit comments