rsbuild-plugin-dts 0.21.2 → 0.21.4
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 +2 -2
- package/dist/index.js +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -296,9 +296,9 @@ import { foo } from './foo.mjs'; // expected output of './dist/bar.d.mts'
|
|
|
296
296
|
- **Type:** `boolean`
|
|
297
297
|
- **Default:** `false`
|
|
298
298
|
|
|
299
|
-
Whether to generate declaration files with [tsgo](https://github.com/microsoft/typescript-go)
|
|
299
|
+
Whether to generate declaration files with [tsgo](https://github.com/microsoft/typescript-go).
|
|
300
300
|
|
|
301
|
-
>
|
|
301
|
+
> Rslib recommends enabling `tsgo` to speed up declaration file generation.
|
|
302
302
|
|
|
303
303
|
To enable this option, you need to:
|
|
304
304
|
|
package/dist/index.js
CHANGED
|
@@ -93,7 +93,7 @@ const pluginDts = (options = {})=>({
|
|
|
93
93
|
error.stack = '';
|
|
94
94
|
throw error;
|
|
95
95
|
}
|
|
96
|
-
promiseResult.errorMessage
|
|
96
|
+
if (promiseResult.errorMessage) logger.error(promiseResult.errorMessage);
|
|
97
97
|
logger.warn('With `abortOnError` configuration currently disabled, type errors will not fail the build, but proper type declaration output cannot be guaranteed.');
|
|
98
98
|
}
|
|
99
99
|
});
|
package/dist/utils.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { DtsEntry, DtsRedirect } from './index.js';
|
|
|
7
7
|
* for better startup performance. If we use `import ts from 'typescript'`,
|
|
8
8
|
* Node.js will use `cjs-module-lexer` to parse it, which slows down startup time.
|
|
9
9
|
*/
|
|
10
|
-
declare const ts: typeof import(
|
|
10
|
+
declare const ts: typeof import('typescript');
|
|
11
11
|
export { ts };
|
|
12
12
|
type ColorFn = (text: string | number) => string;
|
|
13
13
|
type ColorMap = Record<'bold' | 'cyan' | 'dim' | 'reset' | 'underline' | 'yellow', ColorFn>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsbuild-plugin-dts",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.4",
|
|
4
4
|
"description": "Rsbuild plugin that supports emitting declaration files for TypeScript.",
|
|
5
5
|
"homepage": "https://rslib.rs",
|
|
6
6
|
"bugs": {
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"@ast-grep/napi": "0.37.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@microsoft/api-extractor": "^7.58.
|
|
33
|
-
"@rsbuild/core": "2.0.
|
|
34
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
32
|
+
"@microsoft/api-extractor": "^7.58.7",
|
|
33
|
+
"@rsbuild/core": "~2.0.5",
|
|
34
|
+
"@typescript/native-preview": "7.0.0-dev.20260503.1",
|
|
35
35
|
"magic-string": "^0.30.21",
|
|
36
36
|
"prebundle": "1.6.4",
|
|
37
37
|
"rsbuild-plugin-publint": "^0.3.4",
|
|
38
|
-
"rslib": "npm:@rslib/core@0.21.
|
|
38
|
+
"rslib": "npm:@rslib/core@0.21.3",
|
|
39
39
|
"tinyglobby": "^0.2.16",
|
|
40
40
|
"tsconfig-paths": "^4.2.0",
|
|
41
|
-
"typescript": "^6.0.
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
42
|
"@rslib/tsconfig": "0.0.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|