Skip to content

Commit 1a67876

Browse files
authored
docs: fix twoslash paths
1 parent 07b4d83 commit 1a67876

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/.vitepress/config/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const sharedConfig = defineConfig({
8484
transformerTwoslash({
8585
twoslashOptions: {
8686
compilerOptions: {
87-
paths: tsconfigBase.compilerOptions.paths,
87+
paths: Object.fromEntries(Object.entries(tsconfigBase.compilerOptions.paths).map(([key,source])=>[key,path.join('..',source)])),
8888
},
8989
handbookOptions: {
9090
noErrors: true,

0 commit comments

Comments
 (0)