rspress 1.10.1 → 1.11.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/dist/index.js +2 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -129,11 +129,10 @@ cli.command("[root]", "start dev server").alias("dev").option("--port [port]", "
129
129
  const startDevServer = async () => {
130
130
  const { port, host } = options || {};
131
131
  const config = await loadConfigFile(options?.config);
132
- if (config.root && !path3.isAbsolute(config.root)) {
133
- config.root = path3.join(cwd, config.root);
134
- }
135
132
  if (root) {
136
133
  config.root = path3.join(cwd, root);
134
+ } else if (config.root && !path3.isAbsolute(config.root)) {
135
+ config.root = path3.join(cwd, config.root);
137
136
  }
138
137
  docDirectory = config.root || path3.join(cwd, root ?? "docs");
139
138
  devServer = await dev({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rspress",
3
- "version": "1.10.1",
3
+ "version": "1.11.0",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -32,8 +32,8 @@
32
32
  "cac": "^6.7.14",
33
33
  "chokidar": "^3.5.3",
34
34
  "chalk": "5.3.0",
35
- "@rspress/core": "1.10.1",
36
- "@rspress/shared": "1.10.1"
35
+ "@rspress/core": "1.11.0",
36
+ "@rspress/shared": "1.11.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/jest": "~29.2.4",