@rspress/core 2.0.0-beta.27 → 2.0.0-beta.29

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 CHANGED
@@ -1,3 +1,19 @@
1
+ <picture>
2
+ <img alt="Rspress Banner" src="https://assets.rspack.rs/rspress/rspress-banner.png">
3
+ </picture>
4
+
1
5
  # @rspress/core
2
6
 
3
- The core package for [Rspress](https://rspress.rs).
7
+ A fast Rsbuild-based static site generator.
8
+
9
+ ## Documentation
10
+
11
+ See [Documentation](https://rspress.rs/).
12
+
13
+ ## Contributing
14
+
15
+ Please read the [Contributing Guide](https://github.com/web-infra-dev/rspress/blob/main/CONTRIBUTING.md).
16
+
17
+ ## License
18
+
19
+ Rspress is [MIT licensed](https://github.com/web-infra-dev/rspress/blob/main/LICENSE).
@@ -1,5 +1,6 @@
1
+ export const __webpack_id__ = "101";
1
2
  export const __webpack_ids__ = [
2
- "94"
3
+ "101"
3
4
  ];
4
5
  export const __webpack_modules__ = {
5
6
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
@@ -434,7 +435,7 @@ export const __webpack_modules__ = {
434
435
  },
435
436
  "../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
436
437
  __webpack_require__.d(__webpack_exports__, {
437
- r: ()=>execa
438
+ Ho: ()=>execa
438
439
  });
439
440
  var external_node_buffer_ = __webpack_require__("node:buffer");
440
441
  var external_node_path_ = __webpack_require__("node:path");
@@ -1,5 +1,6 @@
1
+ export const __webpack_id__ = "220";
1
2
  export const __webpack_ids__ = [
2
- "208"
3
+ "220"
3
4
  ];
4
5
  export const __webpack_modules__ = {
5
6
  "./src/node/last-updated/index.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -13,7 +14,7 @@ export const __webpack_modules__ = {
13
14
  async function getGitLastUpdatedTimeStamp(filePath) {
14
15
  let lastUpdated;
15
16
  try {
16
- const { stdout } = await (0, execa__WEBPACK_IMPORTED_MODULE_0__.r)('git', [
17
+ const { stdout } = await (0, execa__WEBPACK_IMPORTED_MODULE_0__.Ho)('git', [
17
18
  'log',
18
19
  '-1',
19
20
  '--format=%at',
@@ -1,5 +1,6 @@
1
+ export const __webpack_id__ = "335";
1
2
  export const __webpack_ids__ = [
2
- "309"
3
+ "335"
3
4
  ];
4
5
  export const __webpack_modules__ = {
5
6
  "./src/node/medium-zoom/index.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import picocolors from "picocolors";
6
6
  import { build, dev, serve } from "./index.js";
7
7
  import node_fs from "node:fs";
8
8
  import { DEFAULT_CONFIG_EXTENSIONS, DEFAULT_CONFIG_NAME } from "@rspress/shared/constants";
9
- var package_namespaceObject = JSON.parse('{"i8":"2.0.0-beta.27"}');
9
+ var package_namespaceObject = JSON.parse('{"rE":"2.0.0-beta.29"}');
10
10
  const findConfig = (basePath)=>DEFAULT_CONFIG_EXTENSIONS.map((ext)=>basePath + ext).find(node_fs.existsSync);
11
11
  async function loadConfigFile(customConfigFile) {
12
12
  const baseDir = process.cwd();
@@ -42,8 +42,8 @@ const META_FILES = [
42
42
  '_meta.json',
43
43
  '_nav.json'
44
44
  ];
45
- const cli = cac('rspress').version(package_namespaceObject.i8).help();
46
- const landingMessage = `\u{1F525} Rspress v${package_namespaceObject.i8}\n`;
45
+ const cli = cac('rspress').version(package_namespaceObject.rE).help();
46
+ const landingMessage = `\u{1F525} Rspress v${package_namespaceObject.rE}\n`;
47
47
  logger.greet(landingMessage);
48
48
  const setNodeEnv = (env)=>{
49
49
  process.env.NODE_ENV = env;
package/dist/index.d.ts CHANGED
@@ -231,7 +231,7 @@ export declare class RouteService {
231
231
  addRoute(routePage: RoutePage): Promise<void>;
232
232
  getRoutes(): RouteMeta[];
233
233
  getRoutePages(): RoutePage[];
234
- isExistRoute(routePath: string): boolean;
234
+ isExistRoute(link: string): boolean;
235
235
  generateRoutesCode(): string;
236
236
  private generateRoutesCodeByRouteMeta;
237
237
  getRoutePathParts(relativePath: string): string[];