From 441d4e33e667ec8c36dfda30b545183d02f7cd15 Mon Sep 17 00:00:00 2001 From: Timeless0911 <1604889533@qq.com> Date: Thu, 8 Aug 2024 20:13:30 +0800 Subject: [PATCH] chore: update --- packages/plugin-dts/src/apiExtractor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-dts/src/apiExtractor.ts b/packages/plugin-dts/src/apiExtractor.ts index 60ee74bdd..e0106e153 100644 --- a/packages/plugin-dts/src/apiExtractor.ts +++ b/packages/plugin-dts/src/apiExtractor.ts @@ -14,7 +14,7 @@ export type BundleOptions = { cwd: string; outDir: string; dtsExtension: string; - dtsEntry: Required; + dtsEntry: DtsEntry; tsconfigPath?: string; }; @@ -37,7 +37,7 @@ export async function bundleDts(options: BundleOptions): Promise { relative(cwd, outDir), `${dtsEntry.name}${dtsExtension}`, ); - const mainEntryPointFilePath = dtsEntry.path; + const mainEntryPointFilePath = dtsEntry.path!; const internalConfig = { mainEntryPointFilePath, // TODO: use !externals