rolldown-plugin-dts 0.25.1 → 0.25.2

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.
package/README.md CHANGED
@@ -41,7 +41,9 @@ transformation to avoid processing generated outputs. Since `oxc.exclude`
41
41
  overrides the default exclude list, include JavaScript files as well:
42
42
 
43
43
  ```ts
44
- dts({
44
+ // vite.config.ts
45
+
46
+ export default defineConfig({
45
47
  oxc: {
46
48
  exclude: [/\.js$/, /\.d\.[cm]?ts$/],
47
49
  },
@@ -1,4 +1,4 @@
1
- import { r as TscContext } from "./context-3rlTPR48.mjs";
1
+ import { r as TscContext } from "./context-_3g_7Eca.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
@@ -1,4 +1,4 @@
1
- import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-DQnUJlio.mjs";
1
+ import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-BR9JpwkC.mjs";
2
2
  import { createContext, globalContext, invalidateContextFile } from "./tsc-context.mjs";
3
3
  import { createDebug } from "obug";
4
4
  import { importerId, include } from "rolldown/filter";
@@ -563,7 +563,8 @@ async function collectDependencies(context, node, importer, namespaceStmts, chil
563
563
  "ObjectProperty",
564
564
  "ClassProperty",
565
565
  "TSPropertySignature",
566
- "TSDeclareMethod"
566
+ "TSDeclareMethod",
567
+ "TSMethodSignature"
567
568
  ])) {
568
569
  if (node.computed && isReferenceId(node.key)) addDependency(node.key);
569
570
  if ("value" in node && isReferenceId(node.value)) addDependency(node.value);
@@ -1303,7 +1304,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
1303
1304
  async function resolveDtsPath(id, importer, rolldownResolution) {
1304
1305
  let dtsPath;
1305
1306
  if (resolver === "tsc") {
1306
- const { tscResolve } = await import("./resolver-DkvdaW3s.mjs");
1307
+ const { tscResolve } = await import("./resolver-DtsKFXi2.mjs");
1307
1308
  dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
1308
1309
  } else dtsPath = baseDtsResolver(id, importer);
1309
1310
  debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
package/dist/internal.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-DQnUJlio.mjs";
1
+ import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-BR9JpwkC.mjs";
2
2
  import { readTsconfig } from "get-tsconfig";
3
3
  export { RE_CSS, RE_DTS, RE_DTS_MAP, RE_JS, RE_JSON, RE_NODE_MODULES, RE_ROLLDOWN_RUNTIME, RE_TS, RE_VUE, filename_dts_to, filename_js_to_dts, filename_to_dts, readTsconfig, replaceTemplateName, resolveTemplateFn };
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __cjs_createRequire } from "node:module";
2
2
  const __cjs_require = __cjs_createRequire(import.meta.url);
3
- import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-DQnUJlio.mjs";
3
+ import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-BR9JpwkC.mjs";
4
4
  import { globalContext } from "./tsc-context.mjs";
5
5
  import { createRequire } from "node:module";
6
6
  import { createDebug } from "obug";
@@ -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-3rlTPR48.mjs";
1
+ import { a as globalContext, i as createContext, n as SourceFileToProjectMap, o as invalidateContextFile, r as TscContext, t as ParsedProject } from "./context-_3g_7Eca.mjs";
2
2
  export { ParsedProject, SourceFileToProjectMap, TscContext, createContext, globalContext, invalidateContextFile };
@@ -1,4 +1,4 @@
1
- import { t as tscEmit } from "./index-CJhxyVA1.mjs";
1
+ import { t as tscEmit } from "./index-DFO9SbW-.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-8hYVvCE4.mjs";
1
+ import { t as tscEmit } from "./tsc-DBLgyoBn.mjs";
2
2
  import process from "node:process";
3
3
  import { createBirpc } from "birpc";
4
4
  //#region src/tsc/worker.ts
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-CJhxyVA1.mjs";
1
+ import { i as TscResult, n as TscModule, r as TscOptions, t as tscEmit } from "./index-DFO9SbW-.mjs";
2
2
  export { type TscModule, type TscOptions, type TscResult, tscEmit };
package/dist/tsc.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as tscEmit } from "./tsc-8hYVvCE4.mjs";
1
+ import { t as tscEmit } from "./tsc-DBLgyoBn.mjs";
2
2
  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.25.1",
4
+ "version": "0.25.2",
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,9 +62,9 @@
62
62
  }
63
63
  },
64
64
  "dependencies": {
65
- "@babel/generator": "8.0.0-rc.5",
66
- "@babel/helper-validator-identifier": "8.0.0-rc.5",
67
- "@babel/parser": "8.0.0-rc.4",
65
+ "@babel/generator": "8.0.0-rc.6",
66
+ "@babel/helper-validator-identifier": "8.0.0-rc.6",
67
+ "@babel/parser": "8.0.0-rc.6",
68
68
  "ast-kit": "^3.0.0-beta.1",
69
69
  "birpc": "^4.0.0",
70
70
  "dts-resolver": "^3.0.0",
@@ -72,29 +72,29 @@
72
72
  "obug": "^2.1.1"
73
73
  },
74
74
  "devDependencies": {
75
- "@babel/types": "^8.0.0-rc.4",
75
+ "@babel/types": "^8.0.0-rc.6",
76
76
  "@jridgewell/source-map": "^0.3.11",
77
77
  "@sxzz/eslint-config": "^8.1.0",
78
78
  "@sxzz/prettier-config": "^2.3.1",
79
79
  "@sxzz/test-utils": "^0.5.18",
80
- "@types/node": "^25.8.0",
81
- "@typescript/native-preview": "7.0.0-dev.20260515.1",
80
+ "@types/node": "^25.9.1",
81
+ "@typescript/native-preview": "7.0.0-dev.20260527.2",
82
82
  "@volar/typescript": "^2.4.28",
83
- "@vue/language-core": "^3.2.9",
83
+ "@vue/language-core": "^3.3.2",
84
84
  "arktype": "^2.2.0",
85
85
  "bumpp": "^11.1.0",
86
86
  "diff": "^9.0.0",
87
87
  "eslint": "^10.4.0",
88
88
  "prettier": "^3.8.3",
89
- "rolldown": "^1.0.1",
89
+ "rolldown": "^1.0.3",
90
90
  "rolldown-plugin-require-cjs": "^0.4.0",
91
91
  "rollup-plugin-dts": "^6.4.1",
92
- "tsdown": "^0.22.0",
92
+ "tsdown": "^0.22.1",
93
93
  "tsnapi": "^0.3.3",
94
94
  "typescript": "^6.0.3",
95
- "vitest": "^4.1.6",
96
- "vue": "^3.5.34",
97
- "vue-tsc": "^3.2.9",
95
+ "vitest": "^4.1.7",
96
+ "vue": "^3.5.35",
97
+ "vue-tsc": "^3.3.2",
98
98
  "zod": "^4.4.3"
99
99
  },
100
100
  "prettier": "@sxzz/prettier-config",