Skip to content

Commit aed238a

Browse files
committed
chore: update
1 parent f775a58 commit aed238a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/plugin-dts/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ export const pluginDts = (options: PluginDtsOptions = {}): RsbuildPlugin => ({
114114
const { options: rawCompilerOptions } = tsConfigResult;
115115
const { declarationDir, outDir, composite, incremental } =
116116
rawCompilerOptions;
117-
// the priority of dtsEmitPath is dts.distPath > declarationDir > output.distPath.root
118-
// outDir is not considered since in multiple formats, the dts files may not in the same directory as the js files
119117
const dtsEmitPath = getDtsEmitPath(
120118
options.distPath,
121119
declarationDir,

packages/plugin-dts/src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ export async function cleanTsBuildInfoFile(
506506
}
507507
}
508508

509+
// the priority of dtsEmitPath is dts.distPath > declarationDir > output.distPath.root
510+
// outDir is not considered since in multiple formats, the dts files may not in the same directory as the js files
509511
export function getDtsEmitPath(
510512
pathFromPlugin: string | undefined,
511513
declarationDir: string | undefined,

0 commit comments

Comments
 (0)