@rspress/core 1.43.3 → 1.43.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.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { mergeDocConfig } from '@rspress/shared/node-utils';
2
2
  import type { RsbuildConfig } from '@rsbuild/core';
3
+ import { RsbuildInstance } from '@rsbuild/core';
3
4
  import { UserConfig } from '@rspress/shared';
4
5
 
5
6
  export declare function build(options: BuildOptions): Promise<void>;
@@ -21,7 +22,7 @@ declare interface DevOptions {
21
22
 
22
23
  export { mergeDocConfig }
23
24
 
24
- export declare function serve(options: ServeOptions): Promise<void>;
25
+ export declare function serve(options: ServeOptions): Promise<ReturnType<RsbuildInstance['preview']>>;
25
26
 
26
27
  declare interface ServeOptions {
27
28
  config: UserConfig;
package/dist/index.js CHANGED
@@ -1537,7 +1537,7 @@ async function dev(options) {
1537
1537
  }
1538
1538
  }
1539
1539
  var package_namespaceObject = {
1540
- i8: "1.43.3"
1540
+ i8: "1.43.5"
1541
1541
  };
1542
1542
  async function renderFrontmatterHead(route) {
1543
1543
  if (!isRouteMeta(route)) return '';
@@ -1701,7 +1701,7 @@ async function serve(options) {
1701
1701
  await pluginDriver.init();
1702
1702
  const modifiedConfig = await pluginDriver.modifyConfig();
1703
1703
  const builder = await initRsbuild(config.root, modifiedConfig, pluginDriver, false);
1704
- await builder.preview();
1704
+ return builder.preview();
1705
1705
  }
1706
1706
  var __webpack_exports__mergeDocConfig = __WEBPACK_EXTERNAL_MODULE__rspress_shared_node_utils_78947ce6__.mergeDocConfig;
1707
1707
  export { build, dev, serve, __webpack_exports__mergeDocConfig as mergeDocConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/core",
3
- "version": "1.43.3",
3
+ "version": "1.43.5",
4
4
  "description": "The Rspress Documentation Framework",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -73,13 +73,13 @@
73
73
  "unified": "^10.1.2",
74
74
  "unist-util-visit": "^4.1.2",
75
75
  "unist-util-visit-children": "^2.0.2",
76
- "@rspress/plugin-auto-nav-sidebar": "1.43.3",
77
- "@rspress/plugin-container-syntax": "1.43.3",
78
- "@rspress/plugin-last-updated": "1.43.3",
79
- "@rspress/plugin-medium-zoom": "1.43.3",
80
- "@rspress/runtime": "1.43.3",
81
- "@rspress/shared": "1.43.3",
82
- "@rspress/theme-default": "1.43.3"
76
+ "@rspress/plugin-container-syntax": "1.43.5",
77
+ "@rspress/plugin-medium-zoom": "1.43.5",
78
+ "@rspress/plugin-last-updated": "1.43.5",
79
+ "@rspress/runtime": "1.43.5",
80
+ "@rspress/shared": "1.43.5",
81
+ "@rspress/plugin-auto-nav-sidebar": "1.43.5",
82
+ "@rspress/theme-default": "1.43.5"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@microsoft/api-extractor": "^7.49.2",