@rspress/core 2.0.0-beta.33 → 2.0.0-beta.34

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.
@@ -542,6 +542,21 @@ export const __webpack_modules__ = {
542
542
  };
543
543
  const node_modules_onetime = onetime_onetime;
544
544
  var external_node_os_ = __webpack_require__("node:os");
545
+ const getRealtimeSignals = ()=>{
546
+ const length = SIGRTMAX - SIGRTMIN + 1;
547
+ return Array.from({
548
+ length
549
+ }, getRealtimeSignal);
550
+ };
551
+ const getRealtimeSignal = (value, index)=>({
552
+ name: `SIGRT${index + 1}`,
553
+ number: SIGRTMIN + index,
554
+ action: "terminate",
555
+ description: "Application-specific signal (realtime)",
556
+ standard: "posix"
557
+ });
558
+ const SIGRTMIN = 34;
559
+ const SIGRTMAX = 64;
545
560
  const SIGNALS = [
546
561
  {
547
562
  name: "SIGHUP",
@@ -813,21 +828,6 @@ export const __webpack_modules__ = {
813
828
  standard: "other"
814
829
  }
815
830
  ];
816
- const getRealtimeSignals = ()=>{
817
- const length = SIGRTMAX - SIGRTMIN + 1;
818
- return Array.from({
819
- length
820
- }, getRealtimeSignal);
821
- };
822
- const getRealtimeSignal = (value, index)=>({
823
- name: `SIGRT${index + 1}`,
824
- number: SIGRTMIN + index,
825
- action: "terminate",
826
- description: "Application-specific signal (realtime)",
827
- standard: "posix"
828
- });
829
- const SIGRTMIN = 34;
830
- const SIGRTMAX = 64;
831
831
  const getSignals = ()=>{
832
832
  const realtimeSignals = getRealtimeSignals();
833
833
  const signals = [
@@ -869,7 +869,7 @@ export const __webpack_modules__ = {
869
869
  const signalsByName = getSignalsByName();
870
870
  const getSignalsByNumber = ()=>{
871
871
  const signals = getSignals();
872
- const length = 65;
872
+ const length = SIGRTMAX + 1;
873
873
  const signalsA = Array.from({
874
874
  length
875
875
  }, (value, number)=>getSignalByNumber(number, signals));
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import picocolors from "picocolors";
6
6
  import { build, dev, serve } from "./index.js";
7
7
  import node_fs from "node:fs";
8
8
  import { DEFAULT_CONFIG_EXTENSIONS, DEFAULT_CONFIG_NAME } from "@rspress/shared/constants";
9
- var package_namespaceObject = JSON.parse('{"rE":"2.0.0-beta.33"}');
9
+ var package_namespaceObject = JSON.parse('{"rE":"2.0.0-beta.34"}');
10
10
  const findConfig = (basePath)=>DEFAULT_CONFIG_EXTENSIONS.map((ext)=>basePath + ext).find(node_fs.existsSync);
11
11
  async function loadConfigFile(customConfigFile) {
12
12
  const baseDir = process.cwd();
@@ -43,7 +43,7 @@ const META_FILES = [
43
43
  '_nav.json'
44
44
  ];
45
45
  const cli = cac('rspress').version(package_namespaceObject.rE).help();
46
- const landingMessage = `\u{1F525} Rspress v${package_namespaceObject.rE}\n`;
46
+ const landingMessage = `🔥 Rspress v${package_namespaceObject.rE}\n`;
47
47
  logger.greet(landingMessage);
48
48
  const setNodeEnv = (env)=>{
49
49
  process.env.NODE_ENV = env;
@@ -89,8 +89,7 @@ cli.command('[root]', 'start dev server').alias('dev').option('--port [port]', '
89
89
  if ('add' === eventName || 'unlink' === eventName || 'change' === eventName && CONFIG_FILES.includes(basename)) {
90
90
  if (isRestarting) return;
91
91
  isRestarting = true;
92
- console.log(`
93
- \u{2728} ${eventName} ${picocolors.green(node_path.relative(cwd, filepath))}, dev server will restart...\n`);
92
+ console.log(`\n✨ ${eventName} ${picocolors.green(node_path.relative(cwd, filepath))}, dev server will restart...\n`);
94
93
  await devServer.close();
95
94
  await cliWatcher.close();
96
95
  await startDevServer();