diff --git a/tools/shiki-twoslash/src/node/createTwoslashTransformer.ts b/tools/shiki-twoslash/src/node/createTwoslashTransformer.ts index ba5881ac00..b7b87d5bc6 100644 --- a/tools/shiki-twoslash/src/node/createTwoslashTransformer.ts +++ b/tools/shiki-twoslash/src/node/createTwoslashTransformer.ts @@ -25,13 +25,13 @@ export const createTwoslashTransformer = async ( const { compilerOptions = {} } = _twoslashOptions - const twoslashOptions = { + const twoslashOptions: ShikiTwoslashOptions['twoslashOptions'] = { ...defaultTwoslashOptions(), ..._twoslashOptions, compilerOptions: { baseUrl: process.cwd(), ...compilerOptions, - path: { + paths: { ...compilerOptions.paths, ...(await resolveTypeScriptPaths()), },