rolldown-plugin-dts 0.9.9 → 0.9.11

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 +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -290,7 +290,7 @@ function createFakeJsPlugin({ dtsInput, sourcemap }) {
290
290
  entryFileNames: options.entryFileNames ?? (dtsInput ? "[name].ts" : void 0),
291
291
  chunkFileNames(chunk) {
292
292
  const original = (typeof options.chunkFileNames === "function" ? options.chunkFileNames(chunk) : options.chunkFileNames) || "[name]-[hash].js";
293
- if (!original.includes(".d") && chunk.name.endsWith(".d")) return filename_js_to_dts(original);
293
+ if (!original.includes(".d") && chunk.name.endsWith(".d")) return filename_js_to_dts(original).replace("[name]", chunk.name.slice(0, -2));
294
294
  return original;
295
295
  }
296
296
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown-plugin-dts",
3
- "version": "0.9.9",
3
+ "version": "0.9.11",
4
4
  "description": "A Rolldown plugin to bundle dts files",
5
5
  "type": "module",
6
6
  "license": "MIT",