rolldown-plugin-dts 0.17.8 → 0.18.1
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 +1 -1
- package/dist/index.mjs +3 -3
- package/package.json +15 -15
package/README.md
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -27,7 +27,7 @@ const {
|
|
|
27
27
|
tmpdir
|
|
28
28
|
} = globalThis.process.getBuiltinModule("node:os");
|
|
29
29
|
const path = globalThis.process.getBuiltinModule("node:path");
|
|
30
|
-
import { ResolverFactory,
|
|
30
|
+
import { ResolverFactory, isolatedDeclarationSync } from "rolldown/experimental";
|
|
31
31
|
const process = globalThis.process;
|
|
32
32
|
import { getTsconfig, parseTsconfig } from "get-tsconfig";
|
|
33
33
|
import { createResolver } from "dts-resolver";
|
|
@@ -604,7 +604,7 @@ function inheritNodeComments(oldNode, newNode) {
|
|
|
604
604
|
//#endregion
|
|
605
605
|
//#region src/generate.ts
|
|
606
606
|
const debug$1 = createDebug("rolldown-plugin-dts:generate");
|
|
607
|
-
const WORKER_URL = "./tsc-worker.
|
|
607
|
+
const WORKER_URL = "./tsc-worker.mjs";
|
|
608
608
|
const spawnAsync = (...args) => new Promise((resolve, reject) => {
|
|
609
609
|
const child = spawn(...args);
|
|
610
610
|
child.on("close", () => resolve());
|
|
@@ -726,7 +726,7 @@ function createGeneratePlugin({ tsconfig, tsconfigRaw, build, incremental, cwd,
|
|
|
726
726
|
throw new Error(`tsgo did not generate dts file for ${id}, please check your tsconfig.`);
|
|
727
727
|
}
|
|
728
728
|
} else if (oxc && !RE_VUE.test(id)) {
|
|
729
|
-
const result =
|
|
729
|
+
const result = isolatedDeclarationSync(id, code, oxc);
|
|
730
730
|
if (result.errors.length) {
|
|
731
731
|
const [error] = result.errors;
|
|
732
732
|
return this.error({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown-plugin-dts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "A Rolldown plugin to generate and bundle dts files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@ts-macro/tsc": "^0.3.6",
|
|
44
44
|
"@typescript/native-preview": ">=7.0.0-dev.20250601.1",
|
|
45
|
-
"rolldown": "^1.0.0-beta.
|
|
45
|
+
"rolldown": "^1.0.0-beta.51",
|
|
46
46
|
"typescript": "^5.0.0",
|
|
47
47
|
"vue-tsc": "~3.1.0"
|
|
48
48
|
},
|
|
@@ -69,31 +69,31 @@
|
|
|
69
69
|
"dts-resolver": "^2.1.3",
|
|
70
70
|
"get-tsconfig": "^4.13.0",
|
|
71
71
|
"magic-string": "^0.30.21",
|
|
72
|
-
"obug": "^2.
|
|
72
|
+
"obug": "^2.1.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@sxzz/eslint-config": "^7.2
|
|
76
|
-
"@sxzz/prettier-config": "^2.2.
|
|
77
|
-
"@sxzz/test-utils": "^0.5.
|
|
75
|
+
"@sxzz/eslint-config": "^7.3.2",
|
|
76
|
+
"@sxzz/prettier-config": "^2.2.5",
|
|
77
|
+
"@sxzz/test-utils": "^0.5.13",
|
|
78
78
|
"@types/babel__generator": "^7.27.0",
|
|
79
79
|
"@types/node": "^24.10.1",
|
|
80
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
81
|
-
"@volar/typescript": "^2.4.
|
|
82
|
-
"@vue/language-core": "^3.1.
|
|
83
|
-
"arktype": "^2.1.
|
|
80
|
+
"@typescript/native-preview": "7.0.0-dev.20251125.1",
|
|
81
|
+
"@volar/typescript": "^2.4.26",
|
|
82
|
+
"@vue/language-core": "^3.1.5",
|
|
83
|
+
"arktype": "^2.1.27",
|
|
84
84
|
"bumpp": "^10.3.1",
|
|
85
85
|
"diff": "^8.0.2",
|
|
86
86
|
"eslint": "^9.39.1",
|
|
87
87
|
"prettier": "^3.6.2",
|
|
88
|
-
"rolldown": "^1.0.0-beta.
|
|
88
|
+
"rolldown": "^1.0.0-beta.51",
|
|
89
89
|
"rolldown-plugin-require-cjs": "^0.3.1",
|
|
90
90
|
"rollup-plugin-dts": "^6.2.3",
|
|
91
91
|
"tinyglobby": "^0.2.15",
|
|
92
|
-
"tsdown": "^0.16.
|
|
92
|
+
"tsdown": "^0.16.6",
|
|
93
93
|
"typescript": "^5.9.3",
|
|
94
|
-
"vitest": "^4.0.
|
|
95
|
-
"vue": "^3.5.
|
|
96
|
-
"vue-tsc": "^3.1.
|
|
94
|
+
"vitest": "^4.0.13",
|
|
95
|
+
"vue": "^3.5.25",
|
|
96
|
+
"vue-tsc": "^3.1.5"
|
|
97
97
|
},
|
|
98
98
|
"engines": {
|
|
99
99
|
"node": ">=20.19.0"
|