rolldown-plugin-dts 0.22.4 → 0.22.5
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/dist/index.mjs
CHANGED
|
@@ -7,13 +7,13 @@ import { isIdentifierName } from "@babel/helper-validator-identifier";
|
|
|
7
7
|
import { parse } from "@babel/parser";
|
|
8
8
|
import * as t from "@babel/types";
|
|
9
9
|
import { isDeclarationType, isIdentifierOf, isTypeOf, resolveString, walkAST } from "ast-kit";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { fork, spawn } from "node:child_process";
|
|
11
|
+
import { existsSync } from "node:fs";
|
|
12
|
+
import { mkdtemp, readFile, rm } from "node:fs/promises";
|
|
13
|
+
import path from "node:path";
|
|
14
14
|
import { ResolverFactory, isolatedDeclarationSync } from "rolldown/experimental";
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
import { tmpdir } from "node:os";
|
|
16
|
+
import process from "node:process";
|
|
17
17
|
import { getTsconfig, parseTsconfig } from "get-tsconfig";
|
|
18
18
|
import { createResolver } from "dts-resolver";
|
|
19
19
|
//#region src/dts-input.ts
|
|
@@ -95,7 +95,7 @@ function createFakeJsPlugin({ sourcemap, cjsDefault, sideEffects }) {
|
|
|
95
95
|
};
|
|
96
96
|
function transform(code, id) {
|
|
97
97
|
const file = parse(code, {
|
|
98
|
-
plugins: [["typescript", { dts: true }]],
|
|
98
|
+
plugins: [["typescript", { dts: true }], "decoratorAutoAccessors"],
|
|
99
99
|
sourceType: "module",
|
|
100
100
|
errorRecovery: true,
|
|
101
101
|
createParenthesizedExpressions: true
|
|
@@ -1043,7 +1043,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
|
|
|
1043
1043
|
async function resolveDtsPath(id, importer, rolldownResolution) {
|
|
1044
1044
|
let dtsPath;
|
|
1045
1045
|
if (resolver === "tsc") {
|
|
1046
|
-
const { tscResolve } = await import("./resolver-
|
|
1046
|
+
const { tscResolve } = await import("./resolver-BUWpVKW_.mjs");
|
|
1047
1047
|
dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
|
|
1048
1048
|
} else dtsPath = baseDtsResolver(id, importer);
|
|
1049
1049
|
debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { createRequire as __cjs_createRequire } from "node:module";
|
|
2
|
+
const __cjs_require = __cjs_createRequire(import.meta.url);
|
|
2
3
|
import { createDebug } from "obug";
|
|
3
|
-
|
|
4
|
+
import path from "node:path";
|
|
4
5
|
const ts = __cjs_require("typescript");
|
|
5
6
|
//#region src/tsc/resolver.ts
|
|
6
7
|
const debug = createDebug("rolldown-plugin-dts:tsc-resolver");
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { createRequire as __cjs_createRequire } from "node:module";
|
|
2
|
+
const __cjs_require = __cjs_createRequire(import.meta.url);
|
|
2
3
|
import { RE_DTS, RE_DTS_MAP } from "./filename.mjs";
|
|
3
4
|
import { globalContext } from "./tsc-context.mjs";
|
|
4
|
-
|
|
5
|
+
import { createRequire } from "node:module";
|
|
5
6
|
import { createDebug } from "obug";
|
|
6
|
-
|
|
7
|
+
import path from "node:path";
|
|
7
8
|
const ts = __cjs_require("typescript");
|
|
8
|
-
|
|
9
|
+
import { pathToFileURL } from "node:url";
|
|
9
10
|
//#region \0rolldown/runtime.js
|
|
10
11
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
11
12
|
//#endregion
|
package/dist/tsc-context.mjs
CHANGED
package/dist/tsc-worker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as tscEmit } from "./tsc-
|
|
2
|
-
|
|
1
|
+
import { t as tscEmit } from "./tsc-Dh95OfBG.mjs";
|
|
2
|
+
import process from "node:process";
|
|
3
3
|
import { createBirpc } from "birpc";
|
|
4
4
|
//#region src/tsc/worker.ts
|
|
5
5
|
createBirpc({ tscEmit }, {
|
package/dist/tsc.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as tscEmit } from "./tsc-
|
|
1
|
+
import { t as tscEmit } from "./tsc-Dh95OfBG.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.22.
|
|
4
|
+
"version": "0.22.5",
|
|
5
5
|
"description": "A Rolldown plugin to generate and bundle dts files.",
|
|
6
6
|
"author": "Kevin Deng <sxzz@sxzz.moe>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -77,29 +77,29 @@
|
|
|
77
77
|
"@sxzz/eslint-config": "^7.8.3",
|
|
78
78
|
"@sxzz/prettier-config": "^2.3.1",
|
|
79
79
|
"@sxzz/test-utils": "^0.5.15",
|
|
80
|
-
"@types/node": "^25.
|
|
81
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
80
|
+
"@types/node": "^25.4.0",
|
|
81
|
+
"@typescript/native-preview": "7.0.0-dev.20260311.1",
|
|
82
82
|
"@volar/typescript": "^2.4.28",
|
|
83
83
|
"@vue/language-core": "^3.2.5",
|
|
84
84
|
"arktype": "^2.2.0",
|
|
85
85
|
"bumpp": "^10.4.1",
|
|
86
86
|
"diff": "^8.0.3",
|
|
87
|
-
"eslint": "^10.0.
|
|
87
|
+
"eslint": "^10.0.3",
|
|
88
88
|
"prettier": "^3.8.1",
|
|
89
|
-
"rolldown": "^1.0.0-rc.
|
|
89
|
+
"rolldown": "^1.0.0-rc.9",
|
|
90
90
|
"rolldown-plugin-dts-snapshot": "^0.4.0",
|
|
91
|
-
"rolldown-plugin-require-cjs": "^0.
|
|
91
|
+
"rolldown-plugin-require-cjs": "^0.4.0",
|
|
92
92
|
"rollup-plugin-dts": "^6.3.0",
|
|
93
93
|
"tinyglobby": "^0.2.15",
|
|
94
|
-
"tsdown": "^0.21.
|
|
94
|
+
"tsdown": "^0.21.1",
|
|
95
95
|
"typescript": "6.0.0-dev.20260301",
|
|
96
96
|
"vitest": "^4.0.18",
|
|
97
|
-
"vue": "^3.5.
|
|
97
|
+
"vue": "^3.5.30",
|
|
98
98
|
"vue-tsc": "^3.2.5",
|
|
99
99
|
"zod": "^4.3.6"
|
|
100
100
|
},
|
|
101
101
|
"resolutions": {
|
|
102
|
-
"rolldown": "^1.0.0-rc.
|
|
102
|
+
"rolldown": "^1.0.0-rc.9"
|
|
103
103
|
},
|
|
104
104
|
"prettier": "@sxzz/prettier-config",
|
|
105
105
|
"scripts": {
|