rolldown-plugin-dts 0.22.2 → 0.22.3

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.
@@ -1,4 +1,4 @@
1
- import { r as TscContext } from "./context-BbNuMjMl.mjs";
1
+ import { r as TscContext } from "./context-Cc-Tkynb.mjs";
2
2
  import { SourceMapInput } from "rolldown";
3
3
  import { TsConfigJson } from "get-tsconfig";
4
4
  import ts from "typescript";
package/dist/index.mjs CHANGED
@@ -487,7 +487,7 @@ function isReferenceId(node) {
487
487
  return isTypeOf(node, ["Identifier", "MemberExpression"]);
488
488
  }
489
489
  function isHelperImport(node) {
490
- 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));
490
+ return node.type === "ImportDeclaration" && node.specifiers.every((spec) => spec.type === "ImportSpecifier" && spec.imported.type === "Identifier" && ["__exportAll", "__reExport"].includes(spec.local.name));
491
491
  }
492
492
  /**
493
493
  * patch `.d.ts` suffix in import source to `.js`
@@ -1060,7 +1060,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
1060
1060
  async function resolveDtsPath(id, importer, rolldownResolution) {
1061
1061
  let dtsPath;
1062
1062
  if (resolver === "tsc") {
1063
- const { tscResolve } = await import("./resolver-j7HY1N36.mjs");
1063
+ const { tscResolve } = await import("./resolver-Ds-R63_O.mjs");
1064
1064
  dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
1065
1065
  } else dtsPath = baseDtsResolver(id, importer);
1066
1066
  debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
@@ -255,7 +255,7 @@ function loadVueLanguageTools() {
255
255
  };
256
256
  } catch (error) {
257
257
  debug$2("vue language tools not found", error);
258
- throw new Error("Failed to load vue language tools. Please manually install vue-tsc.");
258
+ throw new Error("Failed to load vue language tools. Please manually install vue-tsc.", { cause: error });
259
259
  }
260
260
  }
261
261
  function initVueLanguageTools() {
@@ -291,7 +291,7 @@ function initTsMacro() {
291
291
  };
292
292
  } catch (error) {
293
293
  debug("ts-macro language tools not found", error);
294
- throw new Error("Failed to load ts-macro language tools. Please manually install @ts-macro/tsc.");
294
+ throw new Error("Failed to load ts-macro language tools. Please manually install @ts-macro/tsc.", { cause: error });
295
295
  }
296
296
  }
297
297
  function createProgramFactory(ts, options) {
@@ -1,2 +1,2 @@
1
- import { a as globalContext, i as createContext, n as SourceFileToProjectMap, o as invalidateContextFile, r as TscContext, t as ParsedProject } from "./context-BbNuMjMl.mjs";
1
+ import { a as globalContext, i as createContext, n as SourceFileToProjectMap, o as invalidateContextFile, r as TscContext, t as ParsedProject } from "./context-Cc-Tkynb.mjs";
2
2
  export { ParsedProject, SourceFileToProjectMap, TscContext, createContext, globalContext, invalidateContextFile };
@@ -1,4 +1,4 @@
1
- import { t as tscEmit } from "./index-CJd0fw6p.mjs";
1
+ import { t as tscEmit } from "./index-lpAqB_wE.mjs";
2
2
 
3
3
  //#region src/tsc/worker.d.ts
4
4
  declare const functions: {
@@ -1,4 +1,4 @@
1
- import { t as tscEmit } from "./tsc-GyRYMxqk.mjs";
1
+ import { t as tscEmit } from "./tsc-GSZeR8WO.mjs";
2
2
  const process = globalThis.process;
3
3
  import { createBirpc } from "birpc";
4
4
 
package/dist/tsc.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as TscResult, n as TscModule, r as TscOptions, t as tscEmit } from "./index-CJd0fw6p.mjs";
1
+ import { i as TscResult, n as TscModule, r as TscOptions, t as tscEmit } from "./index-lpAqB_wE.mjs";
2
2
  export { TscModule, TscOptions, TscResult, tscEmit };
package/dist/tsc.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as tscEmit } from "./tsc-GyRYMxqk.mjs";
1
+ import { t as tscEmit } from "./tsc-GSZeR8WO.mjs";
2
2
 
3
3
  export { tscEmit };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rolldown-plugin-dts",
3
3
  "type": "module",
4
- "version": "0.22.2",
4
+ "version": "0.22.3",
5
5
  "description": "A Rolldown plugin to generate and bundle dts files.",
6
6
  "author": "Kevin Deng <sxzz@sxzz.moe>",
7
7
  "license": "MIT",
@@ -62,10 +62,10 @@
62
62
  }
63
63
  },
64
64
  "dependencies": {
65
- "@babel/generator": "8.0.0-rc.1",
66
- "@babel/helper-validator-identifier": "8.0.0-rc.1",
67
- "@babel/parser": "8.0.0-rc.1",
68
- "@babel/types": "8.0.0-rc.1",
65
+ "@babel/generator": "8.0.0-rc.2",
66
+ "@babel/helper-validator-identifier": "8.0.0-rc.2",
67
+ "@babel/parser": "8.0.0-rc.2",
68
+ "@babel/types": "8.0.0-rc.2",
69
69
  "ast-kit": "^3.0.0-beta.1",
70
70
  "birpc": "^4.0.0",
71
71
  "dts-resolver": "^2.1.3",
@@ -74,11 +74,11 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@jridgewell/source-map": "^0.3.11",
77
- "@sxzz/eslint-config": "^7.8.1",
77
+ "@sxzz/eslint-config": "^7.8.2",
78
78
  "@sxzz/prettier-config": "^2.3.1",
79
79
  "@sxzz/test-utils": "^0.5.15",
80
- "@types/node": "^25.3.1",
81
- "@typescript/native-preview": "7.0.0-dev.20260226.1",
80
+ "@types/node": "^25.3.3",
81
+ "@typescript/native-preview": "7.0.0-dev.20260301.1",
82
82
  "@volar/typescript": "^2.4.28",
83
83
  "@vue/language-core": "^3.2.5",
84
84
  "arktype": "^2.1.29",
@@ -86,20 +86,20 @@
86
86
  "diff": "^8.0.3",
87
87
  "eslint": "^10.0.2",
88
88
  "prettier": "^3.8.1",
89
- "rolldown": "^1.0.0-rc.5",
90
- "rolldown-plugin-dts-snapshot": "^0.3.2",
89
+ "rolldown": "^1.0.0-rc.6",
90
+ "rolldown-plugin-dts-snapshot": "^0.4.0",
91
91
  "rolldown-plugin-require-cjs": "^0.3.3",
92
92
  "rollup-plugin-dts": "^6.3.0",
93
93
  "tinyglobby": "^0.2.15",
94
- "tsdown": "^0.21.0-beta.1",
95
- "typescript": "6.0.0-beta",
94
+ "tsdown": "^0.21.0-beta.2",
95
+ "typescript": "6.0.0-dev.20260301",
96
96
  "vitest": "^4.0.18",
97
97
  "vue": "^3.5.29",
98
98
  "vue-tsc": "^3.2.5",
99
99
  "zod": "^4.3.6"
100
100
  },
101
101
  "resolutions": {
102
- "rolldown": "^1.0.0-rc.5"
102
+ "rolldown": "^1.0.0-rc.6"
103
103
  },
104
104
  "prettier": "@sxzz/prettier-config",
105
105
  "scripts": {