@bunup/dts 0.14.32 → 0.14.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -611,7 +611,8 @@ async function generateDts(entrypoints, options = {}) {
|
|
|
611
611
|
declaration = sourceText;
|
|
612
612
|
} else {
|
|
613
613
|
if (options.inferTypes && tsCompiledDist) {
|
|
614
|
-
const
|
|
614
|
+
const relativePath = path2.relative(cwd, args.path);
|
|
615
|
+
const declarationPath = replaceExtension(path2.join(tsCompiledDist, relativePath), ".d.ts");
|
|
615
616
|
declaration = await Bun.file(declarationPath).text();
|
|
616
617
|
} else {
|
|
617
618
|
const isolatedDeclarationResult = isolatedDeclaration(args.path, sourceText);
|