Skip to content

Commit aa95cdf

Browse files
shulaodasxzz
andauthored
feat!: require rolldown 1.0.0-rc.3 (#183)
Co-authored-by: Kevin Deng <sxzz@sxzz.moe>
1 parent a123b83 commit aa95cdf

File tree

7 files changed

+177
-172
lines changed

7 files changed

+177
-172
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A Rolldown plugin to generate and bundle dts files.
88

99
## Install
1010

11-
Requires **`rolldown@1.0.0-beta.57`** or later.
11+
Requires **`rolldown@1.0.0-rc.3`** or later.
1212

1313
```bash
1414
npm i -D rolldown-plugin-dts

dts.snapshot.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
{
2-
"context-!~{00b}~.d.mts": {
3-
"createContext": "declare function createContext(): TscContext",
4-
"globalContext": "TscContext",
5-
"invalidateContextFile": "declare function invalidateContextFile(_: TscContext, _: string): void",
6-
"ParsedProject": "interface ParsedProject {\n tsconfigPath: string\n parsedConfig: ts.ParsedCommandLine\n}",
7-
"SourceFileToProjectMap": "type SourceFileToProjectMap = Map<string, ParsedProject>",
8-
"TscContext": "interface TscContext {\n programs: ts.Program[]\n files: Map<string, string>\n projects: Map<string, SourceFileToProjectMap>\n}"
9-
},
102
"filename.d.mts": {
113
"filename_dts_to": "declare function filename_dts_to(_: string, _: 'js' | 'ts'): string",
124
"filename_js_to_dts": "declare function filename_js_to_dts(_: string): string",
@@ -39,12 +31,6 @@
3931
"resolveTemplateFn"
4032
]
4133
},
42-
"index-!~{00d}~.d.mts": {
43-
"tscEmit": "declare function tscEmit(_: TscOptions): TscResult",
44-
"TscModule": "interface TscModule {\n program: ts.Program\n file: ts.SourceFile\n}",
45-
"TscOptions": "interface TscOptions {\n tsconfig?: string\n tsconfigRaw: TsConfigJson\n cwd: string\n build: boolean\n incremental: boolean\n entries?: string[]\n id: string\n sourcemap: boolean\n vue?: boolean\n tsMacro?: boolean\n context?: TscContext\n}",
46-
"TscResult": "interface TscResult {\n code?: string\n map?: SourceMapInput\n error?: string\n}"
47-
},
4834
"index.d.mts": {
4935
"createFakeJsPlugin": "declare function createFakeJsPlugin(_: Pick<OptionsResolved, 'sourcemap' | 'cjsDefault' | 'sideEffects'>): Plugin",
5036
"createGeneratePlugin": "declare function createGeneratePlugin(_: Pick<OptionsResolved, 'cwd' | 'tsconfig' | 'tsconfigRaw' | 'build' | 'incremental' | 'oxc' | 'emitDtsOnly' | 'vue' | 'tsMacro' | 'parallel' | 'eager' | 'tsgo' | 'newContext' | 'emitJs' | 'sourcemap'>): Plugin",
@@ -65,6 +51,12 @@
6551
]
6652
},
6753
"tsc-context.d.mts": {
54+
"createContext": "declare function createContext(): TscContext",
55+
"globalContext": "TscContext",
56+
"invalidateContextFile": "declare function invalidateContextFile(_: TscContext, _: string): void",
57+
"ParsedProject": "interface ParsedProject {\n tsconfigPath: string\n parsedConfig: ts.ParsedCommandLine\n}",
58+
"SourceFileToProjectMap": "type SourceFileToProjectMap = Map<string, ParsedProject>",
59+
"TscContext": "interface TscContext {\n programs: ts.Program[]\n files: Map<string, string>\n projects: Map<string, SourceFileToProjectMap>\n}",
6860
"#exports": [
6961
"ParsedProject",
7062
"SourceFileToProjectMap",
@@ -82,11 +74,17 @@
8274
]
8375
},
8476
"tsc.d.mts": {
77+
"tscEmit": "declare function tscEmit(_: TscOptions): TscResult",
8578
"#exports": [
8679
"TscModule",
8780
"TscOptions",
8881
"TscResult",
8982
"tscEmit"
9083
]
84+
},
85+
"types-!~{007}~.d.mts": {
86+
"TscModule": "interface TscModule {\n program: ts.Program\n file: ts.SourceFile\n}",
87+
"TscOptions": "interface TscOptions {\n tsconfig?: string\n tsconfigRaw: TsConfigJson\n cwd: string\n build: boolean\n incremental: boolean\n entries?: string[]\n id: string\n sourcemap: boolean\n vue?: boolean\n tsMacro?: boolean\n context?: TscContext\n}",
88+
"TscResult": "interface TscResult {\n code?: string\n map?: SourceMapInput\n error?: string\n}"
9189
}
9290
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"peerDependencies": {
5656
"@ts-macro/tsc": "^0.3.6",
5757
"@typescript/native-preview": ">=7.0.0-dev.20250601.1",
58-
"rolldown": "^1.0.0-beta.57",
58+
"rolldown": "^1.0.0-rc.3",
5959
"typescript": "^5.0.0",
6060
"vue-tsc": "~3.2.0"
6161
},
@@ -98,7 +98,7 @@
9898
"diff": "^8.0.3",
9999
"eslint": "^9.39.2",
100100
"prettier": "^3.8.1",
101-
"rolldown": "^1.0.0-rc.2",
101+
"rolldown": "^1.0.0-rc.3",
102102
"rolldown-plugin-dts-snapshot": "^0.3.2",
103103
"rolldown-plugin-require-cjs": "^0.3.3",
104104
"rollup-plugin-dts": "^6.3.0",
@@ -110,7 +110,7 @@
110110
"vue-tsc": "^3.2.4"
111111
},
112112
"resolutions": {
113-
"rolldown": "^1.0.0-rc.2"
113+
"rolldown": "^1.0.0-rc.3"
114114
},
115115
"prettier": "@sxzz/prettier-config"
116116
}

0 commit comments

Comments
 (0)