rolldown-plugin-dts 0.19.2 → 0.20.0

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.mjs +3 -3
  2. package/package.json +7 -7
package/dist/index.mjs CHANGED
@@ -438,7 +438,7 @@ function isReferenceId(node) {
438
438
  return isTypeOf(node, ["Identifier", "MemberExpression"]);
439
439
  }
440
440
  function isHelperImport(node) {
441
- return node.type === "ImportDeclaration" && node.specifiers.length === 1 && node.specifiers.every((spec) => spec.type === "ImportSpecifier" && spec.imported.type === "Identifier" && ["__export", "__reExport"].includes(spec.local.name));
441
+ return node.type === "ImportDeclaration" && node.specifiers.length === 1 && node.specifiers.every((spec) => spec.type === "ImportSpecifier" && spec.imported.type === "Identifier" && ["__exportAll", "__reExport"].includes(spec.local.name));
442
442
  }
443
443
  /**
444
444
  * patch `.d.ts` suffix in import source to `.js`
@@ -466,7 +466,7 @@ function patchImportExport(node, typeOnlyIds, cjsDefault) {
466
466
  }
467
467
  }
468
468
  /**
469
- * Handle `__export` call
469
+ * Handle `__exportAll` call
470
470
  */
471
471
  function patchTsNamespace(nodes) {
472
472
  const removed = /* @__PURE__ */ new Set();
@@ -496,7 +496,7 @@ function patchTsNamespace(nodes) {
496
496
  }
497
497
  return nodes.filter((node) => !removed.has(node));
498
498
  function handleExport(node) {
499
- if (node.type !== "VariableDeclaration" || node.declarations.length !== 1 || node.declarations[0].id.type !== "Identifier" || node.declarations[0].init?.type !== "CallExpression" || node.declarations[0].init.callee.type !== "Identifier" || node.declarations[0].init.callee.name !== "__export" || node.declarations[0].init.arguments.length !== 1 || node.declarations[0].init.arguments[0].type !== "ObjectExpression") return false;
499
+ if (node.type !== "VariableDeclaration" || node.declarations.length !== 1 || node.declarations[0].id.type !== "Identifier" || node.declarations[0].init?.type !== "CallExpression" || node.declarations[0].init.callee.type !== "Identifier" || node.declarations[0].init.callee.name !== "__exportAll" || node.declarations[0].init.arguments.length !== 1 || node.declarations[0].init.arguments[0].type !== "ObjectExpression") return false;
500
500
  return [node.declarations[0].id, node.declarations[0].init.arguments[0]];
501
501
  }
502
502
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rolldown-plugin-dts",
3
3
  "type": "module",
4
- "version": "0.19.2",
4
+ "version": "0.20.0",
5
5
  "description": "A Rolldown plugin to generate and bundle dts files.",
6
6
  "author": "Kevin Deng <sxzz@sxzz.moe>",
7
7
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "peerDependencies": {
46
46
  "@ts-macro/tsc": "^0.3.6",
47
47
  "@typescript/native-preview": ">=7.0.0-dev.20250601.1",
48
- "rolldown": "^1.0.0-beta.55",
48
+ "rolldown": "^1.0.0-beta.57",
49
49
  "typescript": "^5.0.0",
50
50
  "vue-tsc": "~3.2.0"
51
51
  },
@@ -74,20 +74,20 @@
74
74
  "obug": "^2.1.1"
75
75
  },
76
76
  "devDependencies": {
77
- "@sxzz/eslint-config": "^7.4.3",
77
+ "@sxzz/eslint-config": "^7.4.4",
78
78
  "@sxzz/prettier-config": "^2.2.6",
79
79
  "@sxzz/test-utils": "^0.5.15",
80
80
  "@types/babel__generator": "^7.27.0",
81
81
  "@types/node": "^25.0.3",
82
- "@typescript/native-preview": "7.0.0-dev.20251221.1",
82
+ "@typescript/native-preview": "7.0.0-dev.20251223.1",
83
83
  "@volar/typescript": "^2.4.27",
84
- "@vue/language-core": "^3.2.0",
84
+ "@vue/language-core": "^3.2.1",
85
85
  "arktype": "^2.1.29",
86
86
  "bumpp": "^10.3.2",
87
87
  "diff": "^8.0.2",
88
88
  "eslint": "^9.39.2",
89
89
  "prettier": "^3.7.4",
90
- "rolldown": "^1.0.0-beta.55",
90
+ "rolldown": "^1.0.0-beta.57",
91
91
  "rolldown-plugin-require-cjs": "^0.3.3",
92
92
  "rollup-plugin-dts": "^6.3.0",
93
93
  "tinyglobby": "^0.2.15",
@@ -95,7 +95,7 @@
95
95
  "typescript": "^5.9.3",
96
96
  "vitest": "^4.0.16",
97
97
  "vue": "^3.5.26",
98
- "vue-tsc": "^3.2.0"
98
+ "vue-tsc": "^3.2.1"
99
99
  },
100
100
  "prettier": "@sxzz/prettier-config",
101
101
  "scripts": {