rolldown-plugin-dts 0.13.5 → 0.13.6

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 +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -666,8 +666,9 @@ function createGeneratePlugin({ tsconfigRaw, tsconfigDir, isolatedDeclarations,
666
666
  ...options,
667
667
  entryFileNames(chunk) {
668
668
  const original = (typeof options.entryFileNames === "function" ? options.entryFileNames(chunk) : options.entryFileNames) || "[name].js";
669
- if (!original.includes(".d") && chunk.name.endsWith(".d")) return original.replace(RE_JS, ".$1ts");
670
- return original;
669
+ if (!chunk.name.endsWith(".d")) return original;
670
+ if (RE_DTS.test(original)) return original.replace("[name]", chunk.name.slice(0, -2));
671
+ return original.replace(RE_JS, ".$1ts");
671
672
  }
672
673
  };
673
674
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown-plugin-dts",
3
- "version": "0.13.5",
3
+ "version": "0.13.6",
4
4
  "description": "A Rolldown plugin to bundle dts files",
5
5
  "type": "module",
6
6
  "license": "MIT",