@kengic/vue 0.32.5-beta.3 → 0.32.5-beta.4
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/preinstall.mjs +4 -13
- package/dist/kengic-vue.js +1 -1
- package/package.json +1 -1
package/bin/preinstall.mjs
CHANGED
|
@@ -10,24 +10,15 @@ function fail(message) {
|
|
|
10
10
|
|
|
11
11
|
function getPnpmVersion(userAgent) {
|
|
12
12
|
const match = /^pnpm\/(\S+)\s/.exec(userAgent);
|
|
13
|
-
return match?.[1] ??
|
|
13
|
+
return match?.[1] ?? '';
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
console.log(chalk.blueBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] PRE-INSTALL |
|
|
16
|
+
console.log(chalk.blueBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] PRE-INSTALL | 期望的环境版本为: node@${REQUIRED_NODE_VERSION} pnpm@${REQUIRED_PNPM_VERSION}`));
|
|
17
17
|
|
|
18
18
|
const currentNodeVersion = process.versions.node;
|
|
19
|
-
|
|
20
|
-
if (currentNodeVersion !== REQUIRED_NODE_VERSION) {
|
|
21
|
-
fail(`NODE.JS 版本必须为 ${REQUIRED_NODE_VERSION}, 当前为 ${currentNodeVersion}`);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
19
|
const userAgent = process.env.npm_config_user_agent ?? '';
|
|
25
20
|
const currentPnpmVersion = getPnpmVersion(userAgent);
|
|
26
21
|
|
|
27
|
-
if (
|
|
28
|
-
fail(
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
if (currentPnpmVersion !== REQUIRED_PNPM_VERSION) {
|
|
32
|
-
fail(`PNPM 版本必须为 ${REQUIRED_PNPM_VERSION}, 当前为 ${currentPnpmVersion}`);
|
|
22
|
+
if (currentNodeVersion !== REQUIRED_NODE_VERSION || currentPnpmVersion !== REQUIRED_PNPM_VERSION) {
|
|
23
|
+
fail(`实际的环境版本为: node@${currentNodeVersion} pnpm@${currentPnpmVersion}`);
|
|
33
24
|
}
|
package/dist/kengic-vue.js
CHANGED
|
@@ -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.
|
|
100070
|
+
const version = "0.32.5-beta.4", 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.
|
|
3
|
+
"version": "0.32.5-beta.4",
|
|
4
4
|
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "24.14.1",
|