rspress 1.37.4 → 1.39.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.
- package/bin/rspress.js +1 -1
- package/dist/index.js +1 -6
- package/package.json +8 -8
package/bin/rspress.js
CHANGED
package/dist/index.js
CHANGED
@@ -35,11 +35,8 @@ async function loadConfigFile(customConfigFile) {
|
|
35
35
|
return content;
|
36
36
|
}
|
37
37
|
function resolveDocRoot(cwd, cliRoot, configRoot) {
|
38
|
-
// CLI root has highest priority
|
39
38
|
if (cliRoot) return __WEBPACK_EXTERNAL_MODULE_node_path__["default"].join(cwd, cliRoot);
|
40
|
-
// Config root is next in priority
|
41
39
|
if (configRoot) return __WEBPACK_EXTERNAL_MODULE_node_path__["default"].isAbsolute(configRoot) ? configRoot : __WEBPACK_EXTERNAL_MODULE_node_path__["default"].join(cwd, configRoot);
|
42
|
-
// Default to 'docs' if no root is specified
|
43
40
|
return __WEBPACK_EXTERNAL_MODULE_node_path__["default"].join(cwd, 'docs');
|
44
41
|
}
|
45
42
|
const lockfileMap = {
|
@@ -96,7 +93,6 @@ const CONFIG_FILES = [
|
|
96
93
|
];
|
97
94
|
const META_FILE = '_meta.json';
|
98
95
|
const src_require = (0, __WEBPACK_EXTERNAL_MODULE_node_module__.createRequire)(import.meta.url);
|
99
|
-
// eslint-disable-next-line import/no-commonjs
|
100
96
|
const src_packageJson = src_require('../package.json');
|
101
97
|
const cli = (0, __WEBPACK_EXTERNAL_MODULE_cac__.cac)('rspress').version(src_packageJson.version).help();
|
102
98
|
const landingMessage = `🔥 Rspress v${src_packageJson.version}\n`;
|
@@ -105,8 +101,7 @@ const setNodeEnv = (env)=>{
|
|
105
101
|
process.env.NODE_ENV = env;
|
106
102
|
};
|
107
103
|
cli.option('-c,--config [config]', 'Specify the path to the config file');
|
108
|
-
cli.command('[root]', 'start dev server')
|
109
|
-
.alias('dev').option('--port [port]', 'port number').option('--host [host]', 'hostname').action(async (root, options)=>{
|
104
|
+
cli.command('[root]', 'start dev server').alias('dev').option('--port [port]', 'port number').option('--host [host]', 'hostname').action(async (root, options)=>{
|
110
105
|
setNodeEnv('development');
|
111
106
|
let isRestarting = false;
|
112
107
|
const cwd = process.cwd();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "rspress",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.39.0",
|
4
4
|
"type": "module",
|
5
5
|
"types": "./dist/index.d.ts",
|
6
6
|
"main": "./dist/index.js",
|
@@ -28,19 +28,19 @@
|
|
28
28
|
}
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@rsbuild/core": "~1.1.
|
31
|
+
"@rsbuild/core": "~1.1.12",
|
32
32
|
"cac": "^6.7.14",
|
33
|
-
"chalk": "5.
|
33
|
+
"chalk": "5.4.1",
|
34
34
|
"chokidar": "^3.6.0",
|
35
|
-
"@rspress/core": "1.
|
36
|
-
"@rspress/shared": "1.
|
35
|
+
"@rspress/core": "1.39.0",
|
36
|
+
"@rspress/shared": "1.39.0"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@microsoft/api-extractor": "^7.48.
|
40
|
-
"@rslib/core": "0.1.
|
39
|
+
"@microsoft/api-extractor": "^7.48.1",
|
40
|
+
"@rslib/core": "0.1.5",
|
41
41
|
"@types/jest": "~29.5.14",
|
42
42
|
"@types/node": "^18.11.17",
|
43
|
-
"@types/react": "^18.3.
|
43
|
+
"@types/react": "^18.3.18",
|
44
44
|
"rimraf": "^3.0.2",
|
45
45
|
"typescript": "^5.5.3"
|
46
46
|
},
|