@kengic/vue 0.32.5-beta.0 → 0.32.5-beta.2

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.
@@ -1,4 +1,5 @@
1
1
  import fs from 'fs';
2
+ import chalk from 'chalk';
2
3
 
3
4
  /**
4
5
  * 安装完成之后, 处理其他任务.
@@ -10,7 +11,7 @@ import fs from 'fs';
10
11
  * @param message 日志消息.
11
12
  */
12
13
  function log(message) {
13
- console.log(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] POST-INSTALL | ${message}`);
14
+ console.log(chalk.blueBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] POST-INSTALL | ${message}`));
14
15
  }
15
16
 
16
17
  /**
@@ -1,8 +1,10 @@
1
+ import chalk from 'chalk';
2
+
1
3
  const REQUIRED_NODE_VERSION = '24.14.1';
2
4
  const REQUIRED_PNPM_VERSION = '10.33.0';
3
5
 
4
6
  function fail(message) {
5
- console.error(`[${new Date().toISOString()}] [@kengic/vue] PRE-INSTALL | ${message}`);
7
+ console.error(chalk.redBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] PRE-INSTALL | ${message}`));
6
8
  process.exit(1);
7
9
  }
8
10
 
@@ -14,16 +16,16 @@ function getPnpmVersion(userAgent) {
14
16
  const currentNodeVersion = process.versions.node;
15
17
 
16
18
  if (currentNodeVersion !== REQUIRED_NODE_VERSION) {
17
- fail(`Node.js version must be ${REQUIRED_NODE_VERSION}, but got ${currentNodeVersion}. Run "nvm use ${REQUIRED_NODE_VERSION}".`);
19
+ fail(`NODE.JS VERSION MUST BE ${REQUIRED_NODE_VERSION}, BUT GOT ${currentNodeVersion}`);
18
20
  }
19
21
 
20
22
  const userAgent = process.env.npm_config_user_agent ?? '';
21
23
  const currentPnpmVersion = getPnpmVersion(userAgent);
22
24
 
23
25
  if (!currentPnpmVersion) {
24
- fail(`This project must be installed with pnpm ${REQUIRED_PNPM_VERSION}. Run "corepack use pnpm@${REQUIRED_PNPM_VERSION}" first.`);
26
+ fail(`THIS PROJECT MUST BE INSTALLED WITH pnpm ${REQUIRED_PNPM_VERSION}`);
25
27
  }
26
28
 
27
29
  if (currentPnpmVersion !== REQUIRED_PNPM_VERSION) {
28
- fail(`pnpm version must be ${REQUIRED_PNPM_VERSION}, but got ${currentPnpmVersion}. Run "corepack use pnpm@${REQUIRED_PNPM_VERSION}".`);
30
+ fail(`PNPM VERSION MUST BE ${REQUIRED_PNPM_VERSION}, BUT GOT ${currentPnpmVersion}`);
29
31
  }
@@ -100067,7 +100067,7 @@ function _interopRequireDefault(re) {
100067
100067
  return re && re.__esModule ? re : { default: re };
100068
100068
  }
100069
100069
  default_1 = zhTW.default = _zhCHT.default;
100070
- const version = "0.32.5-beta.0", cs_CZ$1 = {}, en$2 = {
100070
+ const version = "0.32.5-beta.2", cs_CZ$1 = {}, en$2 = {
100071
100071
  "kg.KgAppSelect.businessManager": "Business Manager",
100072
100072
  "kg.KgAppSelect.dataManager": "Data Manager",
100073
100073
  "kg.KgAppSelect.sys": "System Config",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.32.5-beta.0",
3
+ "version": "0.32.5-beta.2",
4
4
  "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
5
5
  "engines": {
6
6
  "node": "24.14.1",