@savvy-web/rspress-builder 1.1.34 → 1.2.0

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/index.d.ts +5 -5
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { BuildConfig, BuildConfigInput, BuildEntryOverride, RunOptions, runBuild
7
7
  *
8
8
  * @public
9
9
  */
10
- interface RspressBundleOptions {
10
+ export interface RspressBundleOptions {
11
11
  /** Additional externals merged with this bundle's built-ins and the build-wide `externals`. */
12
12
  readonly externals?: ReadonlyArray<string>;
13
13
  /** Packages whose declarations are inlined into this bundle's dts. */
@@ -22,7 +22,7 @@ interface RspressBundleOptions {
22
22
  *
23
23
  * @public
24
24
  */
25
- interface RspressPluginOptions {
25
+ export interface RspressPluginOptions {
26
26
  /**
27
27
  * Enable the `./runtime` bundle (browser, bundleless, CSS modules, React/`@theme` external).
28
28
  * `true` (default) builds it; `false` disables it; an object tunes its externals.
@@ -64,7 +64,7 @@ interface RspressPluginOptions {
64
64
  *
65
65
  * @public
66
66
  */
67
- declare function definePlugin(options?: RspressPluginOptions): BuildConfig;
67
+ export declare function definePlugin(options?: RspressPluginOptions): BuildConfig;
68
68
  /**
69
69
  * Front door for building an RSPress plugin. Applies the {@link definePlugin} preset
70
70
  * and runs the build, deriving `cwd` and `argv` from `process.argv`. For advanced use,
@@ -72,7 +72,7 @@ declare function definePlugin(options?: RspressPluginOptions): BuildConfig;
72
72
  *
73
73
  * @public
74
74
  */
75
- declare function build(options?: RspressPluginOptions, overrides?: Partial<RunOptions>): Promise<void>;
75
+ export declare function build(options?: RspressPluginOptions, overrides?: Partial<RunOptions>): Promise<void>;
76
76
  //#endregion
77
- export { type BuildConfig, type BuildConfigInput, type BuildEntryOverride, RspressBundleOptions, RspressPluginOptions, type RunOptions, build, definePlugin, runBuild };
77
+ export { type BuildConfig, type BuildConfigInput, type BuildEntryOverride, type RunOptions, runBuild };
78
78
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvy-web/rspress-builder",
3
- "version": "1.1.34",
3
+ "version": "1.2.0",
4
4
  "private": false,
5
5
  "description": "RSPress plugin builder for the Silk Suite, built on @savvy-web/bundler",
6
6
  "homepage": "https://github.com/savvy-web/systems/tree/main/packages/rspress-builder",
@@ -33,8 +33,8 @@
33
33
  "./package.json": "./package.json"
34
34
  },
35
35
  "dependencies": {
36
- "@savvy-web/bundler": "2.2.1",
37
- "@tsdown/css": "^0.22.14"
36
+ "@savvy-web/bundler": "2.3.0",
37
+ "@tsdown/css": "^0.23.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@rspress/core": "^2.0.0",