Skip to content

Commit 52a5c2f

Browse files
committed
fix(docs): silence TS 6 deprecation for baseUrl in twoslash
Twoslash's virtual TS env sets baseUrl in its default compiler options, and TS 6 errors on it. Pass `ignoreDeprecations: '6.0'` through twoslashOptions.compilerOptions so the doc build's snippet compilation stops failing. Also remove the unused baseUrl from docs/tsconfig.json.
1 parent 628eb64 commit 52a5c2f

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

docs/.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export default defineConfig({
7070
compilerOptions: {
7171
resolveJsonModule: true,
7272
moduleResolution: /* Bundler */ 100,
73+
ignoreDeprecations: '6.0',
7374
},
7475
},
7576
}),

docs/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"target": "ESNext",
44
"jsx": "preserve",
55
"lib": ["DOM", "ESNext"],
6-
"baseUrl": ".",
76
"module": "ESNext",
87
"moduleResolution": "bundler",
98
"resolveJsonModule": true,

0 commit comments

Comments
 (0)