rolldown-plugin-dts 0.21.0 → 0.21.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 +3 -3
- package/dist/index.d.mts +120 -120
- package/dist/index.mjs +54 -31
- package/package.json +15 -17
package/README.md
CHANGED
|
@@ -190,13 +190,13 @@ To use this option, ensure that `@typescript/native-preview` is installed as a d
|
|
|
190
190
|
|
|
191
191
|
`tsconfigRaw` and `compilerOptions` options will be ignored when this option is enabled.
|
|
192
192
|
|
|
193
|
-
##
|
|
193
|
+
## Code Splitting Support
|
|
194
194
|
|
|
195
|
-
When using Rolldown's
|
|
195
|
+
When using Rolldown's code splitting features `codeSplitting`, you should pay special attention to handling `.d.ts` files. The chunk names for `.d.ts` files must end with `.d`.
|
|
196
196
|
|
|
197
197
|
```ts
|
|
198
198
|
export default {
|
|
199
|
-
|
|
199
|
+
codeSplitting: {
|
|
200
200
|
groups: [
|
|
201
201
|
// handle .d.ts files
|
|
202
202
|
{ test: /foo.*\.d\.[cm]?ts$/, name: 'shared.d' },
|
package/dist/index.d.mts
CHANGED
|
@@ -5,168 +5,168 @@ import { Plugin } from "rolldown";
|
|
|
5
5
|
//#region src/options.d.ts
|
|
6
6
|
interface GeneralOptions {
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
* The directory in which the plugin will search for the `tsconfig.json` file.
|
|
9
|
+
*/
|
|
10
10
|
cwd?: string;
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
* Set to `true` if your entry files are `.d.ts` files instead of `.ts` files.
|
|
13
|
+
*
|
|
14
|
+
* When enabled, the plugin will skip generating a `.d.ts` file for the entry point.
|
|
15
|
+
*/
|
|
16
16
|
dtsInput?: boolean;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
* If `true`, the plugin will emit only `.d.ts` files and remove all other output chunks.
|
|
19
|
+
*
|
|
20
|
+
* This is especially useful when generating `.d.ts` files for the CommonJS format as part of a separate build step.
|
|
21
|
+
*/
|
|
22
22
|
emitDtsOnly?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
* The path to the `tsconfig.json` file.
|
|
25
|
+
*
|
|
26
|
+
* If set to `false`, the plugin will ignore any `tsconfig.json` file.
|
|
27
|
+
* You can still specify `compilerOptions` directly in the options.
|
|
28
|
+
*
|
|
29
|
+
* @default 'tsconfig.json'
|
|
30
|
+
*/
|
|
31
31
|
tsconfig?: string | boolean;
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
* Pass a raw `tsconfig.json` object directly to the plugin.
|
|
34
|
+
*
|
|
35
|
+
* @see https://www.typescriptlang.org/tsconfig
|
|
36
|
+
*/
|
|
37
37
|
tsconfigRaw?: Omit<TsConfigJson, "compilerOptions">;
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
* Override the `compilerOptions` specified in `tsconfig.json`.
|
|
40
|
+
*
|
|
41
|
+
* @see https://www.typescriptlang.org/tsconfig/#compilerOptions
|
|
42
|
+
*/
|
|
43
43
|
compilerOptions?: TsConfigJson.CompilerOptions;
|
|
44
44
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
* If `true`, the plugin will generate declaration maps (`.d.ts.map`) for `.d.ts` files.
|
|
46
|
+
*/
|
|
47
47
|
sourcemap?: boolean;
|
|
48
48
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
* Specifies a resolver to resolve type definitions, especially for `node_modules`.
|
|
50
|
+
*
|
|
51
|
+
* - `'oxc'`: Uses Oxc's module resolution, which is faster and more efficient.
|
|
52
|
+
* - `'tsc'`: Uses TypeScript's native module resolution, which may be more compatible with complex setups, but slower.
|
|
53
|
+
*
|
|
54
|
+
* @default 'oxc'
|
|
55
|
+
*/
|
|
56
56
|
resolver?: "oxc" | "tsc";
|
|
57
57
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
* Determines how the default export is emitted.
|
|
59
|
+
*
|
|
60
|
+
* If set to `true`, and you are only exporting a single item using `export default ...`,
|
|
61
|
+
* the output will use `export = ...` instead of the standard ES module syntax.
|
|
62
|
+
* This is useful for compatibility with CommonJS.
|
|
63
|
+
*/
|
|
64
64
|
cjsDefault?: boolean;
|
|
65
65
|
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
* Indicates whether the generated `.d.ts` files have side effects.
|
|
67
|
+
* - If set to `true`, Rolldown will treat the `.d.ts` files as having side effects during tree-shaking.
|
|
68
|
+
* - If set to `false`, Rolldown may consider the `.d.ts` files as side-effect-free, potentially removing them if they are not imported.
|
|
69
|
+
*
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
72
|
sideEffects?: boolean;
|
|
73
73
|
}
|
|
74
74
|
interface TscOptions {
|
|
75
75
|
/**
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
* Build mode for the TypeScript compiler:
|
|
77
|
+
*
|
|
78
|
+
* - If `true`, the plugin will use [`tsc -b`](https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript) to build the project and all referenced projects before emitting `.d.ts` files.
|
|
79
|
+
* - If `false`, the plugin will use [`tsc`](https://www.typescriptlang.org/docs/handbook/compiler-options.html) to emit `.d.ts` files without building referenced projects.
|
|
80
|
+
*
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
83
|
build?: boolean;
|
|
84
84
|
/**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
85
|
+
* If your tsconfig.json has
|
|
86
|
+
* [`references`](https://www.typescriptlang.org/tsconfig/#references) option,
|
|
87
|
+
* `rolldown-plugin-dts` will use [`tsc
|
|
88
|
+
* -b`](https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript)
|
|
89
|
+
* to build the project and all referenced projects before emitting `.d.ts`
|
|
90
|
+
* files.
|
|
91
|
+
*
|
|
92
|
+
* In such case, if this option is `true`, `rolldown-plugin-dts` will write
|
|
93
|
+
* down all built files into your disk, including
|
|
94
|
+
* [`.tsbuildinfo`](https://www.typescriptlang.org/tsconfig/#tsBuildInfoFile)
|
|
95
|
+
* and other built files. This is equivalent to running `tsc -b` in your
|
|
96
|
+
* project.
|
|
97
|
+
*
|
|
98
|
+
* Otherwise, if this option is `false`, `rolldown-plugin-dts` will write
|
|
99
|
+
* built files only into memory and leave a small footprint in your disk.
|
|
100
|
+
*
|
|
101
|
+
* Enabling this option will decrease the build time by caching previous build
|
|
102
|
+
* results. This is helpful when you have a large project with multiple
|
|
103
|
+
* referenced projects.
|
|
104
|
+
*
|
|
105
|
+
* By default, `incremental` is `true` if your tsconfig has
|
|
106
|
+
* [`incremental`](https://www.typescriptlang.org/tsconfig/#incremental) or
|
|
107
|
+
* [`tsBuildInfoFile`](https://www.typescriptlang.org/tsconfig/#tsBuildInfoFile)
|
|
108
|
+
* enabled.
|
|
109
|
+
*
|
|
110
|
+
* This option is only used when {@link Options.oxc} is
|
|
111
|
+
* `false`.
|
|
112
|
+
*/
|
|
113
113
|
incremental?: boolean;
|
|
114
114
|
/**
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
* If `true`, the plugin will generate `.d.ts` files using `vue-tsc`.
|
|
116
|
+
*/
|
|
117
117
|
vue?: boolean;
|
|
118
118
|
/**
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
* If `true`, the plugin will generate `.d.ts` files using `@ts-macro/tsc`.
|
|
120
|
+
*/
|
|
121
121
|
tsMacro?: boolean;
|
|
122
122
|
/**
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
* If `true`, the plugin will launch a separate process for `tsc` or `vue-tsc`.
|
|
124
|
+
* This enables processing multiple projects in parallel.
|
|
125
|
+
*/
|
|
126
126
|
parallel?: boolean;
|
|
127
127
|
/**
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
* If `true`, the plugin will prepare all files listed in `tsconfig.json` for `tsc` or `vue-tsc`.
|
|
129
|
+
*
|
|
130
|
+
* This is especially useful when you have a single `tsconfig.json` for multiple projects in a monorepo.
|
|
131
|
+
*/
|
|
132
132
|
eager?: boolean;
|
|
133
133
|
/**
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
134
|
+
* If `true`, the plugin will create a new isolated context for each build,
|
|
135
|
+
* ensuring that previously generated `.d.ts` code and caches are not reused.
|
|
136
|
+
*
|
|
137
|
+
* By default, the plugin may reuse internal caches or incremental build artifacts
|
|
138
|
+
* to speed up repeated builds. Enabling this option forces a clean context,
|
|
139
|
+
* guaranteeing that all type definitions are generated from scratch.
|
|
140
|
+
*
|
|
141
|
+
* @default false
|
|
142
|
+
*/
|
|
143
143
|
newContext?: boolean;
|
|
144
144
|
/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
145
|
+
* If `true`, the plugin will emit `.d.ts` files for `.js` files as well.
|
|
146
|
+
* This is useful when you want to generate type definitions for JavaScript files with JSDoc comments.
|
|
147
|
+
*
|
|
148
|
+
* Enabled by default when `allowJs` in compilerOptions is `true`.
|
|
149
|
+
* This option is only used when {@link Options.oxc} is
|
|
150
|
+
* `false`.
|
|
151
|
+
*/
|
|
152
152
|
emitJs?: boolean;
|
|
153
153
|
}
|
|
154
154
|
interface Options extends GeneralOptions, TscOptions {
|
|
155
155
|
/**
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
* If `true`, the plugin will generate `.d.ts` files using Oxc,
|
|
157
|
+
* which is significantly faster than the TypeScript compiler.
|
|
158
|
+
*
|
|
159
|
+
* This option is automatically enabled when `isolatedDeclarations` in `compilerOptions` is set to `true`.
|
|
160
|
+
*/
|
|
161
161
|
oxc?: boolean | Omit<IsolatedDeclarationsOptions, "sourcemap">;
|
|
162
162
|
/**
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
163
|
+
* **[Experimental]** Enables DTS generation using `tsgo`.
|
|
164
|
+
*
|
|
165
|
+
* To use this option, make sure `@typescript/native-preview` is installed as a dependency.
|
|
166
|
+
*
|
|
167
|
+
* **Note:** This option is not yet recommended for production environments.
|
|
168
|
+
* `tsconfigRaw` and `isolatedDeclarations` options will be ignored when this option is enabled.
|
|
169
|
+
*/
|
|
170
170
|
tsgo?: boolean;
|
|
171
171
|
}
|
|
172
172
|
type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
|
package/dist/index.mjs
CHANGED
|
@@ -22,11 +22,11 @@ const {
|
|
|
22
22
|
readFile,
|
|
23
23
|
rm
|
|
24
24
|
} = globalThis.process.getBuiltinModule("node:fs/promises");
|
|
25
|
+
const path = globalThis.process.getBuiltinModule("node:path");
|
|
26
|
+
import { ResolverFactory, isolatedDeclarationSync } from "rolldown/experimental";
|
|
25
27
|
const {
|
|
26
28
|
tmpdir
|
|
27
29
|
} = globalThis.process.getBuiltinModule("node:os");
|
|
28
|
-
const path = globalThis.process.getBuiltinModule("node:path");
|
|
29
|
-
import { ResolverFactory, isolatedDeclarationSync } from "rolldown/experimental";
|
|
30
30
|
const process = globalThis.process;
|
|
31
31
|
import { getTsconfig, parseTsconfig } from "get-tsconfig";
|
|
32
32
|
import { createResolver } from "dts-resolver";
|
|
@@ -99,10 +99,15 @@ function createFakeJsPlugin({ sourcemap, cjsDefault, sideEffects }) {
|
|
|
99
99
|
handler: transform
|
|
100
100
|
},
|
|
101
101
|
renderChunk,
|
|
102
|
-
generateBundle
|
|
102
|
+
generateBundle(options, bundle) {
|
|
103
103
|
for (const chunk of Object.values(bundle)) {
|
|
104
104
|
if (!RE_DTS_MAP.test(chunk.fileName)) continue;
|
|
105
|
-
|
|
105
|
+
if (sourcemap) {
|
|
106
|
+
if (chunk.type === "chunk" || typeof chunk.source !== "string") continue;
|
|
107
|
+
const map = JSON.parse(chunk.source);
|
|
108
|
+
map.sourcesContent = void 0;
|
|
109
|
+
chunk.source = JSON.stringify(map);
|
|
110
|
+
} else delete bundle[chunk.fileName];
|
|
106
111
|
}
|
|
107
112
|
}
|
|
108
113
|
};
|
|
@@ -223,6 +228,9 @@ function createFakeJsPlugin({ sourcemap, cjsDefault, sideEffects }) {
|
|
|
223
228
|
const [symbolIdNode, depsFn] = node.declarations[0].init.elements;
|
|
224
229
|
const symbolId = symbolIdNode.value;
|
|
225
230
|
const original = getSymbol(symbolId);
|
|
231
|
+
walkAST(original.decl, { enter(node$1) {
|
|
232
|
+
delete node$1.loc;
|
|
233
|
+
} });
|
|
226
234
|
for (const [i, decl] of node.declarations.entries()) {
|
|
227
235
|
const transformedBinding = {
|
|
228
236
|
...decl.id,
|
|
@@ -597,14 +605,42 @@ function inheritNodeComments(oldNode, newNode) {
|
|
|
597
605
|
}
|
|
598
606
|
|
|
599
607
|
//#endregion
|
|
600
|
-
//#region src/
|
|
601
|
-
const debug$
|
|
602
|
-
const WORKER_URL = "./tsc-worker.mjs";
|
|
608
|
+
//#region src/tsgo.ts
|
|
609
|
+
const debug$3 = createDebug("rolldown-plugin-dts:tsgo");
|
|
603
610
|
const spawnAsync = (...args) => new Promise((resolve, reject) => {
|
|
604
611
|
const child = spawn(...args);
|
|
605
612
|
child.on("close", () => resolve());
|
|
606
613
|
child.on("error", (error) => reject(error));
|
|
607
614
|
});
|
|
615
|
+
async function runTsgo(rootDir, tsconfig, sourcemap) {
|
|
616
|
+
debug$3("[tsgo] rootDir", rootDir);
|
|
617
|
+
const tsgoPkg = import.meta.resolve("@typescript/native-preview/package.json");
|
|
618
|
+
const { default: getExePath } = await import(new URL("lib/getExePath.js", tsgoPkg).href);
|
|
619
|
+
const tsgo = getExePath();
|
|
620
|
+
const tsgoDist = await mkdtemp(path.join(tmpdir(), "rolldown-plugin-dts-"));
|
|
621
|
+
debug$3("[tsgo] tsgoDist", tsgoDist);
|
|
622
|
+
const args = [
|
|
623
|
+
"--noEmit",
|
|
624
|
+
"false",
|
|
625
|
+
"--declaration",
|
|
626
|
+
"--emitDeclarationOnly",
|
|
627
|
+
...tsconfig ? ["-p", tsconfig] : [],
|
|
628
|
+
"--outDir",
|
|
629
|
+
tsgoDist,
|
|
630
|
+
"--rootDir",
|
|
631
|
+
rootDir,
|
|
632
|
+
"--noCheck",
|
|
633
|
+
...sourcemap ? ["--declarationMap"] : []
|
|
634
|
+
];
|
|
635
|
+
debug$3("[tsgo] args %o", args);
|
|
636
|
+
await spawnAsync(tsgo, args, { stdio: "inherit" });
|
|
637
|
+
return tsgoDist;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
//#endregion
|
|
641
|
+
//#region src/generate.ts
|
|
642
|
+
const debug$2 = createDebug("rolldown-plugin-dts:generate");
|
|
643
|
+
const WORKER_URL = "./tsc-worker.mjs";
|
|
608
644
|
function createGeneratePlugin({ tsconfig, tsconfigRaw, build, incremental, cwd, oxc, emitDtsOnly, vue, tsMacro, parallel, eager, tsgo, newContext, emitJs, sourcemap }) {
|
|
609
645
|
const dtsMap = /* @__PURE__ */ new Map();
|
|
610
646
|
/**
|
|
@@ -626,7 +662,7 @@ function createGeneratePlugin({ tsconfig, tsconfigRaw, build, incremental, cwd,
|
|
|
626
662
|
return {
|
|
627
663
|
name: "rolldown-plugin-dts:generate",
|
|
628
664
|
async buildStart(options) {
|
|
629
|
-
if (tsgo) tsgoDist = await runTsgo(rootDir, tsconfig);
|
|
665
|
+
if (tsgo) tsgoDist = await runTsgo(rootDir, tsconfig, sourcemap);
|
|
630
666
|
else if (!oxc) if (parallel) {
|
|
631
667
|
childProcess = fork(new URL(WORKER_URL, import.meta.url), { stdio: "inherit" });
|
|
632
668
|
rpc = (await import("birpc")).createBirpc({}, {
|
|
@@ -716,11 +752,19 @@ function createGeneratePlugin({ tsconfig, tsconfigRaw, build, incremental, cwd,
|
|
|
716
752
|
if (tsgo) {
|
|
717
753
|
if (RE_VUE.test(id)) throw new Error("tsgo does not support Vue files.");
|
|
718
754
|
const dtsPath = path.resolve(tsgoDist, path.relative(path.resolve(rootDir), filename_to_dts(id)));
|
|
719
|
-
if (existsSync(dtsPath))
|
|
720
|
-
else {
|
|
755
|
+
if (!existsSync(dtsPath)) {
|
|
721
756
|
debug$2("[tsgo]", dtsPath, "is missing");
|
|
722
757
|
throw new Error(`tsgo did not generate dts file for ${id}, please check your tsconfig.`);
|
|
723
758
|
}
|
|
759
|
+
dtsCode = await readFile(dtsPath, "utf8");
|
|
760
|
+
const mapPath = `${dtsPath}.map`;
|
|
761
|
+
if (existsSync(mapPath)) {
|
|
762
|
+
const mapRaw = await readFile(mapPath, "utf8");
|
|
763
|
+
map = {
|
|
764
|
+
...JSON.parse(mapRaw),
|
|
765
|
+
sources: [id]
|
|
766
|
+
};
|
|
767
|
+
}
|
|
724
768
|
} else if (oxc && !RE_VUE.test(id)) {
|
|
725
769
|
const result = isolatedDeclarationSync(id, code, oxc);
|
|
726
770
|
if (result.errors.length) {
|
|
@@ -797,27 +841,6 @@ export { __json_default_export as default }`;
|
|
|
797
841
|
}
|
|
798
842
|
};
|
|
799
843
|
}
|
|
800
|
-
async function runTsgo(rootDir, tsconfig) {
|
|
801
|
-
const tsgoPkg = import.meta.resolve("@typescript/native-preview/package.json");
|
|
802
|
-
const { default: getExePath } = await import(new URL("lib/getExePath.js", tsgoPkg).href);
|
|
803
|
-
const tsgo = getExePath();
|
|
804
|
-
const tsgoDist = await mkdtemp(path.join(tmpdir(), "rolldown-plugin-dts-"));
|
|
805
|
-
debug$2("[tsgo] tsgoDist", tsgoDist);
|
|
806
|
-
debug$2("[tsgo] rootDir", rootDir);
|
|
807
|
-
await spawnAsync(tsgo, [
|
|
808
|
-
"--noEmit",
|
|
809
|
-
"false",
|
|
810
|
-
"--declaration",
|
|
811
|
-
"--emitDeclarationOnly",
|
|
812
|
-
...tsconfig ? ["-p", tsconfig] : [],
|
|
813
|
-
"--outDir",
|
|
814
|
-
tsgoDist,
|
|
815
|
-
"--rootDir",
|
|
816
|
-
rootDir,
|
|
817
|
-
"--noCheck"
|
|
818
|
-
], { stdio: "inherit" });
|
|
819
|
-
return tsgoDist;
|
|
820
|
-
}
|
|
821
844
|
function collectJsonExportMap(code) {
|
|
822
845
|
const exportMap = /* @__PURE__ */ new Map();
|
|
823
846
|
const { program } = parse(code, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown-plugin-dts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.21.
|
|
4
|
+
"version": "0.21.1",
|
|
5
5
|
"description": "A Rolldown plugin to generate and bundle dts files.",
|
|
6
6
|
"author": "Kevin Deng <sxzz@sxzz.moe>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,8 +30,6 @@
|
|
|
30
30
|
"./tsc-worker": "./dist/tsc-worker.mjs",
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
|
-
"main": "./dist/index.mjs",
|
|
34
|
-
"module": "./dist/index.mjs",
|
|
35
33
|
"types": "./dist/index.d.mts",
|
|
36
34
|
"files": [
|
|
37
35
|
"dist"
|
|
@@ -64,9 +62,9 @@
|
|
|
64
62
|
}
|
|
65
63
|
},
|
|
66
64
|
"dependencies": {
|
|
67
|
-
"@babel/generator": "^7.28.
|
|
68
|
-
"@babel/parser": "^7.28.
|
|
69
|
-
"@babel/types": "^7.28.
|
|
65
|
+
"@babel/generator": "^7.28.6",
|
|
66
|
+
"@babel/parser": "^7.28.6",
|
|
67
|
+
"@babel/types": "^7.28.6",
|
|
70
68
|
"ast-kit": "^2.2.0",
|
|
71
69
|
"birpc": "^4.0.0",
|
|
72
70
|
"dts-resolver": "^2.1.3",
|
|
@@ -74,32 +72,32 @@
|
|
|
74
72
|
"obug": "^2.1.1"
|
|
75
73
|
},
|
|
76
74
|
"devDependencies": {
|
|
77
|
-
"@sxzz/eslint-config": "^7.4.
|
|
75
|
+
"@sxzz/eslint-config": "^7.4.5",
|
|
78
76
|
"@sxzz/prettier-config": "^2.2.6",
|
|
79
77
|
"@sxzz/test-utils": "^0.5.15",
|
|
80
78
|
"@types/babel__generator": "^7.27.0",
|
|
81
|
-
"@types/node": "^25.0.
|
|
82
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
79
|
+
"@types/node": "^25.0.8",
|
|
80
|
+
"@typescript/native-preview": "7.0.0-dev.20260114.1",
|
|
83
81
|
"@volar/typescript": "^2.4.27",
|
|
84
|
-
"@vue/language-core": "^3.2.
|
|
82
|
+
"@vue/language-core": "^3.2.2",
|
|
85
83
|
"arktype": "^2.1.29",
|
|
86
|
-
"bumpp": "^10.
|
|
87
|
-
"diff": "^8.0.
|
|
84
|
+
"bumpp": "^10.4.0",
|
|
85
|
+
"diff": "^8.0.3",
|
|
88
86
|
"eslint": "^9.39.2",
|
|
89
87
|
"prettier": "^3.7.4",
|
|
90
|
-
"rolldown": "^1.0.0-beta.
|
|
88
|
+
"rolldown": "^1.0.0-beta.60",
|
|
91
89
|
"rolldown-plugin-dts-snapshot": "^0.3.2",
|
|
92
90
|
"rolldown-plugin-require-cjs": "^0.3.3",
|
|
93
91
|
"rollup-plugin-dts": "^6.3.0",
|
|
94
92
|
"tinyglobby": "^0.2.15",
|
|
95
|
-
"tsdown": "^0.
|
|
93
|
+
"tsdown": "^0.20.0-beta.2",
|
|
96
94
|
"typescript": "^5.9.3",
|
|
97
|
-
"vitest": "^4.0.
|
|
95
|
+
"vitest": "^4.0.17",
|
|
98
96
|
"vue": "^3.5.26",
|
|
99
|
-
"vue-tsc": "^3.2.
|
|
97
|
+
"vue-tsc": "^3.2.2"
|
|
100
98
|
},
|
|
101
99
|
"resolutions": {
|
|
102
|
-
"rolldown": "^1.0.0-beta.
|
|
100
|
+
"rolldown": "^1.0.0-beta.60"
|
|
103
101
|
},
|
|
104
102
|
"prettier": "@sxzz/prettier-config",
|
|
105
103
|
"scripts": {
|