rspress 2.0.0-alpha.1 → 2.0.0-alpha.10

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/dist/index.js +12 -8
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
8
8
  import * as __WEBPACK_EXTERNAL_MODULE__rspress_shared_constants_70084e62__ from "@rspress/shared/constants";
9
9
  import * as __WEBPACK_EXTERNAL_MODULE_node_child_process_27f17141__ from "node:child_process";
10
10
  import * as __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__ from "node:fs/promises";
11
- var package_namespaceObject = JSON.parse('{"i8":"2.0.0-alpha.1"}');
11
+ var package_namespaceObject = JSON.parse('{"i8":"2.0.0-alpha.10"}');
12
12
  const findConfig = (basePath)=>__WEBPACK_EXTERNAL_MODULE__rspress_shared_constants_70084e62__.DEFAULT_CONFIG_EXTENSIONS.map((ext)=>basePath + ext).find(__WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].existsSync);
13
13
  async function loadConfigFile(customConfigFile) {
14
14
  const baseDir = process.cwd();
@@ -87,8 +87,7 @@ async function update() {
87
87
  }
88
88
  const CONFIG_FILES = [
89
89
  'rspress.config.ts',
90
- 'rspress.config.js',
91
- 'i18n.json'
90
+ 'rspress.config.js'
92
91
  ];
93
92
  const META_FILE = '_meta.json';
94
93
  const cli = (0, __WEBPACK_EXTERNAL_MODULE_cac__.cac)('rspress').version(package_namespaceObject.i8).help();
@@ -161,11 +160,16 @@ cli.command('build [root]').action(async (root, options)=>{
161
160
  const config = await loadConfigFile(options.config);
162
161
  config.root = resolveDocRoot(cwd, root, config.root);
163
162
  const docDirectory = config.root;
164
- await (0, __WEBPACK_EXTERNAL_MODULE__rspress_core_1b2e46ce__.build)({
165
- appDirectory: cwd,
166
- docDirectory,
167
- config
168
- });
163
+ try {
164
+ await (0, __WEBPACK_EXTERNAL_MODULE__rspress_core_1b2e46ce__.build)({
165
+ appDirectory: cwd,
166
+ docDirectory,
167
+ config
168
+ });
169
+ } catch (err) {
170
+ __WEBPACK_EXTERNAL_MODULE__rspress_shared_logger_4374e44a__.logger.error(err);
171
+ process.exit(1);
172
+ }
169
173
  });
170
174
  cli.command('preview [root]').alias('serve').option('--port [port]', 'port number').option('--host [host]', 'hostname').action(async (root, options)=>{
171
175
  setNodeEnv('production');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rspress",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rspress",
@@ -36,21 +36,21 @@
36
36
  "config.ts"
37
37
  ],
38
38
  "dependencies": {
39
- "@rsbuild/core": "1.2.16",
39
+ "@rsbuild/core": "1.3.4",
40
40
  "cac": "^6.7.14",
41
41
  "chokidar": "^3.6.0",
42
42
  "picocolors": "^1.1.1",
43
- "@rspress/shared": "2.0.0-alpha.1",
44
- "@rspress/core": "2.0.0-alpha.1"
43
+ "@rspress/core": "2.0.0-alpha.10",
44
+ "@rspress/shared": "2.0.0-alpha.10"
45
45
  },
46
46
  "devDependencies": {
47
- "@microsoft/api-extractor": "^7.51.1",
48
- "@rslib/core": "0.5.3",
47
+ "@microsoft/api-extractor": "^7.52.3",
48
+ "@rslib/core": "0.6.1",
49
49
  "@types/jest": "~29.5.14",
50
50
  "@types/node": "^18.11.17",
51
- "@types/react": "^18.3.18",
51
+ "@types/react": "^18.3.20",
52
52
  "rimraf": "^6.0.1",
53
- "typescript": "^5.5.3"
53
+ "typescript": "^5.8.2"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public",