rspress 1.43.13 ā 1.44.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/dist/index.js +4 -3
- package/package.json +5 -5
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.
|
12
|
+
i8: "1.44.0"
|
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) {
|
@@ -94,7 +94,7 @@ const CONFIG_FILES = [
|
|
94
94
|
];
|
95
95
|
const META_FILE = '_meta.json';
|
96
96
|
const cli = (0, __WEBPACK_EXTERNAL_MODULE_cac__.cac)('rspress').version(package_namespaceObject.i8).help();
|
97
|
-
const landingMessage =
|
97
|
+
const landingMessage = `\u{1F525} Rspress v${package_namespaceObject.i8}\n`;
|
98
98
|
__WEBPACK_EXTERNAL_MODULE__rspress_shared_logger_4374e44a__.logger.greet(landingMessage);
|
99
99
|
const setNodeEnv = (env)=>{
|
100
100
|
process.env.NODE_ENV = env;
|
@@ -137,7 +137,8 @@ cli.command('[root]', 'start dev server').alias('dev').option('--port [port]', '
|
|
137
137
|
if ('add' === eventName || 'unlink' === eventName || 'change' === eventName && (CONFIG_FILES.includes(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].basename(filepath)) || __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].basename(filepath) === META_FILE)) {
|
138
138
|
if (isRestarting) return;
|
139
139
|
isRestarting = true;
|
140
|
-
console.log(
|
140
|
+
console.log(`
|
141
|
+
\u{2728} ${eventName} ${__WEBPACK_EXTERNAL_MODULE_picocolors__["default"].green(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].relative(cwd, filepath))}, dev server will restart...\n`);
|
141
142
|
await devServer.close();
|
142
143
|
await cliWatcher.close();
|
143
144
|
await startDevServer();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "rspress",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.44.0",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "https://github.com/web-infra-dev/rspress",
|
@@ -36,16 +36,16 @@
|
|
36
36
|
"config.ts"
|
37
37
|
],
|
38
38
|
"dependencies": {
|
39
|
-
"@rsbuild/core": "1.3.
|
39
|
+
"@rsbuild/core": "~1.3.18",
|
40
40
|
"cac": "^6.7.14",
|
41
41
|
"chokidar": "^3.6.0",
|
42
42
|
"picocolors": "^1.1.1",
|
43
|
-
"@rspress/core": "1.
|
44
|
-
"@rspress/shared": "1.
|
43
|
+
"@rspress/core": "1.44.0",
|
44
|
+
"@rspress/shared": "1.44.0"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"@microsoft/api-extractor": "^7.49.2",
|
48
|
-
"@rslib/core": "0.
|
48
|
+
"@rslib/core": "~0.6.9",
|
49
49
|
"@types/jest": "~29.5.14",
|
50
50
|
"@types/node": "^18.11.17",
|
51
51
|
"@types/react": "^18.3.18",
|