From 86298b69676da532c02f557de15254dbe78df8bf Mon Sep 17 00:00:00 2001 From: wnhlee <40269597+2wheeh@users.noreply.github.com> Date: Sat, 12 Aug 2023 15:20:16 +0900 Subject: [PATCH] revert: fails to generate types are already in out dir (#260) --- src/plugin.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index aece87f..cffbd0f 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -377,8 +377,7 @@ export function dtsPlugin(options: PluginOptions = {}): import('vite').Plugin { const sourceFile = program.getSourceFile(id) if (sourceFile) { - for (const outputFile of service.getEmitOutput(sourceFile.fileName, true, true) - .outputFiles) { + for (const outputFile of service.getEmitOutput(sourceFile.fileName, true).outputFiles) { outputFiles.set( resolve(publicRoot, relative(outDir, ensureAbsolute(outputFile.name, outDir))), outputFile.text