@moontra/moonui-pro 3.3.2 → 3.3.3
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/package.json +1 -1
- package/scripts/postinstall.cjs +21 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
package/scripts/postinstall.cjs
CHANGED
|
@@ -17,9 +17,24 @@ const CACHE_DURATION = 30 * 24 * 60 * 60 * 1000; // 30 days in milliseconds
|
|
|
17
17
|
|
|
18
18
|
// Detect if we're in production environment
|
|
19
19
|
function isProduction() {
|
|
20
|
+
// Enhanced Vercel detection
|
|
21
|
+
const vercelIndicators = {
|
|
22
|
+
VERCEL: process.env.VERCEL === '1',
|
|
23
|
+
VERCEL_ENV: !!process.env.VERCEL_ENV,
|
|
24
|
+
VERCEL_URL: !!process.env.VERCEL_URL,
|
|
25
|
+
VERCEL_GIT_COMMIT_SHA: !!process.env.VERCEL_GIT_COMMIT_SHA,
|
|
26
|
+
VERCEL_GIT_COMMIT_REF: !!process.env.VERCEL_GIT_COMMIT_REF
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const isVercel = Object.values(vercelIndicators).some(Boolean);
|
|
30
|
+
|
|
31
|
+
if (isVercel) {
|
|
32
|
+
console.log('[MoonUI Pro] Vercel environment detected:', vercelIndicators);
|
|
33
|
+
}
|
|
34
|
+
|
|
20
35
|
return (
|
|
21
36
|
process.env.NODE_ENV === 'production' ||
|
|
22
|
-
|
|
37
|
+
isVercel ||
|
|
23
38
|
process.env.NETLIFY === 'true' ||
|
|
24
39
|
process.env.CI === 'true' ||
|
|
25
40
|
process.env.MOONUI_AUTH_TOKEN // Special token for CI/CD
|
|
@@ -217,9 +232,13 @@ async function main() {
|
|
|
217
232
|
console.log('[MoonUI Pro] Environment:', {
|
|
218
233
|
NODE_ENV: process.env.NODE_ENV,
|
|
219
234
|
VERCEL: process.env.VERCEL,
|
|
235
|
+
VERCEL_ENV: process.env.VERCEL_ENV,
|
|
236
|
+
VERCEL_URL: process.env.VERCEL_URL,
|
|
220
237
|
NETLIFY: process.env.NETLIFY,
|
|
221
238
|
CI: process.env.CI,
|
|
222
|
-
MOONUI_AUTH_TOKEN: !!process.env.MOONUI_AUTH_TOKEN
|
|
239
|
+
MOONUI_AUTH_TOKEN: !!process.env.MOONUI_AUTH_TOKEN,
|
|
240
|
+
MOONUI_LICENSE_KEY: !!process.env.MOONUI_LICENSE_KEY,
|
|
241
|
+
PWD: process.cwd()
|
|
223
242
|
});
|
|
224
243
|
|
|
225
244
|
try {
|