@rspress/core 1.41.0 → 1.41.2

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/193.js ADDED
@@ -0,0 +1,12 @@
1
+ import __rslib_shim_module__ from 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ export const ids = [
4
+ '193'
5
+ ];
6
+ export const modules = {
7
+ "./package.json": function(module) {
8
+ module.exports = {
9
+ version: "1.41.2"
10
+ };
11
+ }
12
+ };
package/dist/index.d.ts CHANGED
@@ -1,31 +1,39 @@
1
- import { RsbuildConfig } from '@rsbuild/core';
2
- import { UserConfig } from '@rspress/shared';
3
- export * from '@rspress/shared';
4
- export { mergeDocConfig } from '@rspress/shared/node-utils';
5
-
6
- interface ServerInstance {
7
- close: () => Promise<void>;
8
- }
9
- interface DevOptions {
10
- appDirectory: string;
11
- docDirectory: string;
12
- config: UserConfig;
13
- extraBuilderConfig?: RsbuildConfig;
14
- }
15
- declare function dev(options: DevOptions): Promise<ServerInstance>;
16
-
17
- interface BuildOptions {
18
- appDirectory: string;
19
- docDirectory: string;
20
- config: UserConfig;
21
- }
22
- declare function build(options: BuildOptions): Promise<void>;
23
-
24
- interface ServeOptions {
25
- config: UserConfig;
26
- port?: number;
27
- host?: string;
28
- }
29
- declare function serve(options: ServeOptions): Promise<void>;
30
-
31
- export { build, dev, serve };
1
+ import { mergeDocConfig } from '@rspress/shared/node-utils';
2
+ import type { RsbuildConfig } from '@rsbuild/core';
3
+ import { UserConfig } from '@rspress/shared';
4
+
5
+ export declare function build(options: BuildOptions): Promise<void>;
6
+
7
+ declare interface BuildOptions {
8
+ appDirectory: string;
9
+ docDirectory: string;
10
+ config: UserConfig;
11
+ }
12
+
13
+ export declare function dev(options: DevOptions): Promise<ServerInstance>;
14
+
15
+ declare interface DevOptions {
16
+ appDirectory: string;
17
+ docDirectory: string;
18
+ config: UserConfig;
19
+ extraBuilderConfig?: RsbuildConfig;
20
+ }
21
+
22
+ export { mergeDocConfig }
23
+
24
+ export declare function serve(options: ServeOptions): Promise<void>;
25
+
26
+ declare interface ServeOptions {
27
+ config: UserConfig;
28
+ port?: number;
29
+ host?: string;
30
+ }
31
+
32
+ declare interface ServerInstance {
33
+ close: () => Promise<void>;
34
+ }
35
+
36
+
37
+ export * from "@rspress/shared";
38
+
39
+ export { }