Skip to content

Commit

Permalink
fix(dts-plugin): support exposes files with multiple dots in names (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
artieeez authored Sep 27, 2024
1 parent 1b6bf0e commit cfa4778
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/dts-plugin/src/core/lib/typeScriptCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ function getExposeKey(options: {
mapExposeToEntry: Record<string, string>;
}) {
const { filePath, rootDir, outDir, mapExposeToEntry } = options;
const relativeFilePath = removeExt(
relative(outDir, filePath.replace(new RegExp(`\\.d.ts$`), '')),
const relativeFilePath = relative(
outDir,
filePath.replace(new RegExp(`\\.d.ts$`), ''),
);
return mapExposeToEntry[relativeFilePath];
}
Expand Down

0 comments on commit cfa4778

Please sign in to comment.