Skip to content

Commit cfa4778

Browse files
authored
fix(dts-plugin): support exposes files with multiple dots in names (#2958)
1 parent 1b6bf0e commit cfa4778

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/dts-plugin/src/core/lib/typeScriptCompiler.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ function getExposeKey(options: {
8686
mapExposeToEntry: Record<string, string>;
8787
}) {
8888
const { filePath, rootDir, outDir, mapExposeToEntry } = options;
89-
const relativeFilePath = removeExt(
90-
relative(outDir, filePath.replace(new RegExp(`\\.d.ts$`), '')),
89+
const relativeFilePath = relative(
90+
outDir,
91+
filePath.replace(new RegExp(`\\.d.ts$`), ''),
9192
);
9293
return mapExposeToEntry[relativeFilePath];
9394
}

0 commit comments

Comments
 (0)