@kengic/vue 0.32.4-beta.0 → 0.32.5-beta.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/preinstall.mjs +29 -0
- package/dist/kengic-vue.js +51412 -51255
- package/dist/src/component/KgForm/KgForm.d.ts +39 -39
- package/dist/src/component/KgImage/KgImage.d.ts +6 -6
- package/dist/src/component/KgModal/KgModal.d.ts +3 -3
- package/dist/src/component/KgModal02/KgModal02.d.ts +62 -34
- package/dist/src/component/KgResizable/KgResizable.d.ts +4 -4
- package/dist/src/util/ant-design-vue.d.ts +16 -16
- package/dist/src/util/index.d.ts +29 -3
- package/dist/src/util/kg.util.d.ts +39 -2
- package/package.json +9 -2
- package/dist/src/util/event.util.d.ts +0 -15
- package/dist/src/util/kg-auth.util.d.ts +0 -12
- package/dist/src/util/kg-route.util.d.ts +0 -18
- package/dist/src/util/tsx.helper.d.ts +0 -23
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const REQUIRED_NODE_VERSION = '24.14.1';
|
|
2
|
+
const REQUIRED_PNPM_VERSION = '10.33.0';
|
|
3
|
+
|
|
4
|
+
function fail(message) {
|
|
5
|
+
console.error(`[${new Date().toISOString()}] [@kengic/vue] PRE-INSTALL | ${message}`);
|
|
6
|
+
process.exit(1);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function getPnpmVersion(userAgent) {
|
|
10
|
+
const match = /^pnpm\/(\S+)\s/.exec(userAgent);
|
|
11
|
+
return match?.[1] ?? null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const currentNodeVersion = process.versions.node;
|
|
15
|
+
|
|
16
|
+
if (currentNodeVersion !== REQUIRED_NODE_VERSION) {
|
|
17
|
+
fail(`Node.js version must be ${REQUIRED_NODE_VERSION}, but got ${currentNodeVersion}. Run "nvm use ${REQUIRED_NODE_VERSION}".`);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const userAgent = process.env.npm_config_user_agent ?? '';
|
|
21
|
+
const currentPnpmVersion = getPnpmVersion(userAgent);
|
|
22
|
+
|
|
23
|
+
if (!currentPnpmVersion) {
|
|
24
|
+
fail(`This project must be installed with pnpm ${REQUIRED_PNPM_VERSION}. Run "corepack use pnpm@${REQUIRED_PNPM_VERSION}" first.`);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (currentPnpmVersion !== REQUIRED_PNPM_VERSION) {
|
|
28
|
+
fail(`pnpm version must be ${REQUIRED_PNPM_VERSION}, but got ${currentPnpmVersion}. Run "corepack use pnpm@${REQUIRED_PNPM_VERSION}".`);
|
|
29
|
+
}
|