@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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. 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 declarationPath = replaceExtension(path2.join(tsCompiledDist, args.path.replace(cwd, "")), ".d.ts");
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunup/dts",
3
- "version": "0.14.32",
3
+ "version": "0.14.35",
4
4
  "description": "An extremely fast TypeScript declaration bundler built on Bun's native bundler.",
5
5
  "homepage": "https://github.com/bunup/dts#readme",
6
6
  "bugs": {