@moontra/moonui-pro 3.3.15 → 3.3.16

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "3.3.15",
3
+ "version": "3.3.16",
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",
@@ -349,14 +349,18 @@ async function main() {
349
349
 
350
350
  // Run if called directly (not imported)
351
351
  if (require.main === module) {
352
- console.log('[MoonUI Pro] PostInstall script invoked');
353
- main().catch(error => {
354
- console.error('[MoonUI Pro] Unexpected error:', error);
355
- console.error('[MoonUI Pro] Stack trace:', error.stack);
356
- process.exit(0); // Don't fail npm install
357
- }).finally(() => {
358
- console.log('[MoonUI Pro] === POSTINSTALL SCRIPT FINISHED ===');
359
- });
352
+ (async () => {
353
+ console.log('[MoonUI Pro] PostInstall script invoked');
354
+ try {
355
+ await main();
356
+ } catch (error) {
357
+ console.error('[MoonUI Pro] Unexpected error:', error);
358
+ console.error('[MoonUI Pro] Stack trace:', error.stack);
359
+ } finally {
360
+ console.log('[MoonUI Pro] === POSTINSTALL SCRIPT FINISHED ===');
361
+ process.exit(0); // Don't fail npm install
362
+ }
363
+ })();
360
364
  } else {
361
365
  console.log('[MoonUI Pro] PostInstall script loaded as module');
362
366
  }
@@ -49,5 +49,14 @@ async function validate() {
49
49
  }
50
50
  }
51
51
 
52
- // Run validation
53
- validate();
52
+ // Run validation and wait for completion
53
+ (async () => {
54
+ try {
55
+ await validate();
56
+ console.log('[MoonUI Pro] Validation completed successfully');
57
+ process.exit(0); // Success
58
+ } catch (error) {
59
+ console.error('[MoonUI Pro] Validation failed:', error);
60
+ process.exit(0); // Don't fail build
61
+ }
62
+ })();