rsbuild-plugin-dts 0.18.3 → 0.18.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.
Files changed (2) hide show
  1. package/README.md +8 -1
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -147,7 +147,7 @@ pluginDts({
147
147
 
148
148
  Configure the path alias for declaration files.
149
149
 
150
- `alias` will be merged with `compilerOptions.paths` configured in `tsconfig.json` and `alias` has a higher priority.
150
+ The path aliases configured in `alias` should be resolved relative to the directory specified by `compilerOptions.baseUrl` in `tsconfig.json`. These aliases will be merged with `compilerOptions.paths`, and `alias` takes higher precedence.
151
151
 
152
152
  In most cases, you don't need to use `alias`, but consider using it when you need to use path alias only in declaration files without wanting to affect JavaScript outputs. For example, map the declaration file of `foo` to `./compiled/foo`.
153
153
 
@@ -159,6 +159,13 @@ pluginDts({
159
159
  });
160
160
  ```
161
161
 
162
+ At this time, when [redirect.path](#redirectpath) is enabled, the import path of `foo` in the declaration file will be redirected to `./compiled/foo`.
163
+
164
+ ```diff
165
+ - export * from 'foo';
166
+ + export * from './compiled/foo';
167
+ ```
168
+
162
169
  ### autoExternal
163
170
 
164
171
  - **Type:** `boolean`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsbuild-plugin-dts",
3
- "version": "0.18.3",
3
+ "version": "0.18.5",
4
4
  "description": "Rsbuild plugin that supports emitting declaration files for TypeScript.",
5
5
  "homepage": "https://rslib.rs",
6
6
  "bugs": {
@@ -29,14 +29,14 @@
29
29
  "@ast-grep/napi": "0.37.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@microsoft/api-extractor": "^7.55.1",
33
- "@rsbuild/core": "~1.6.12",
34
- "@typescript/native-preview": "7.0.0-dev.20251130.1",
32
+ "@microsoft/api-extractor": "^7.55.2",
33
+ "@rsbuild/core": "~1.7.0-beta.0",
34
+ "@typescript/native-preview": "7.0.0-dev.20251214.1",
35
35
  "magic-string": "^0.30.21",
36
36
  "picocolors": "1.1.1",
37
37
  "prebundle": "1.6.0",
38
38
  "rsbuild-plugin-publint": "^0.3.3",
39
- "rslib": "npm:@rslib/core@0.18.2",
39
+ "rslib": "npm:@rslib/core@0.18.4",
40
40
  "tinyglobby": "0.2.14",
41
41
  "tsconfig-paths": "^4.2.0",
42
42
  "typescript": "^5.9.3",