rspress 1.43.2 → 1.43.3

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 +11 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__rspress_shared_constants_70084e62__ from
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
11
  var package_namespaceObject = {
12
- i8: "1.43.2"
12
+ i8: "1.43.3"
13
13
  };
14
14
  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);
15
15
  async function loadConfigFile(customConfigFile) {
@@ -163,11 +163,16 @@ cli.command('build [root]').action(async (root, options)=>{
163
163
  const config = await loadConfigFile(options.config);
164
164
  config.root = resolveDocRoot(cwd, root, config.root);
165
165
  const docDirectory = config.root;
166
- await (0, __WEBPACK_EXTERNAL_MODULE__rspress_core_1b2e46ce__.build)({
167
- appDirectory: cwd,
168
- docDirectory,
169
- config
170
- });
166
+ try {
167
+ await (0, __WEBPACK_EXTERNAL_MODULE__rspress_core_1b2e46ce__.build)({
168
+ appDirectory: cwd,
169
+ docDirectory,
170
+ config
171
+ });
172
+ } catch (err) {
173
+ __WEBPACK_EXTERNAL_MODULE__rspress_shared_logger_4374e44a__.logger.error(err);
174
+ process.exit(1);
175
+ }
171
176
  });
172
177
  cli.command('preview [root]').alias('serve').option('--port [port]', 'port number').option('--host [host]', 'hostname').action(async (root, options)=>{
173
178
  setNodeEnv('production');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rspress",
3
- "version": "1.43.2",
3
+ "version": "1.43.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rspress",
@@ -40,8 +40,8 @@
40
40
  "cac": "^6.7.14",
41
41
  "chokidar": "^3.6.0",
42
42
  "picocolors": "^1.1.1",
43
- "@rspress/core": "1.43.2",
44
- "@rspress/shared": "1.43.2"
43
+ "@rspress/core": "1.43.3",
44
+ "@rspress/shared": "1.43.3"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@microsoft/api-extractor": "^7.49.2",