@moontra/moonui-pro 3.3.6 → 3.3.7

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.6",
3
+ "version": "3.3.7",
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",
@@ -148,13 +148,22 @@ function saveLicenseToken(token) {
148
148
 
149
149
  // 2. Project root'a kalıcı dosya (next.config.ts build time'da okuyacak)
150
150
  try {
151
- // Project root'u bul (node_modules'dan 2 seviye yukarı)
152
- const projectRoot = path.resolve(process.cwd(), '../..');
151
+ // Vercel/Netlify'da process.cwd() zaten project root
152
+ // (npm install proje root'undan çalıştırılır)
153
+ const projectRoot = process.cwd();
153
154
  const tokenFile = path.join(projectRoot, '.moonui-license-token');
154
155
 
155
156
  console.log('[MoonUI Pro] Saving token to project root:', tokenFile);
157
+ console.log('[MoonUI Pro] Current working directory:', process.cwd());
156
158
  fs.writeFileSync(tokenFile, base64Token, 'utf8');
157
159
  console.log('[MoonUI Pro] ✓ Token saved to project root');
160
+
161
+ // Verify file was created
162
+ if (fs.existsSync(tokenFile)) {
163
+ console.log('[MoonUI Pro] ✓ Verified: Token file exists');
164
+ } else {
165
+ console.error('[MoonUI Pro] ❌ Error: Token file was not created!');
166
+ }
158
167
  } catch (fileError) {
159
168
  console.error('[MoonUI Pro] Failed to save token file:', fileError.message);
160
169
  }