responsive-system 1.7.9 → 1.7.10

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": "responsive-system",
3
- "version": "1.7.9",
3
+ "version": "1.7.10",
4
4
  "description": "Sistema de layout responsivo con auto-scaling para Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "./dist/responsive-system.cjs",
@@ -484,26 +484,28 @@ if (needsUpdate) {
484
484
  console.log('✅ Todas las dependencias ya están en package.json')
485
485
  }
486
486
 
487
- // Verificar si el proyecto ya está configurado (antes de la función async)
488
- const mainTsxPath = path.join(projectRoot, 'src', 'main.tsx')
489
- const layoutsDir = path.join(projectRoot, 'src', 'layouts')
490
- const viteConfigPath = path.join(projectRoot, 'vite.config.ts')
487
+ // Función async para manejar la configuración del proyecto
488
+ (async () => {
489
+ // Verificar que fs.existsSync esté disponible
490
+ if (typeof fs.existsSync !== 'function') {
491
+ console.error('❌ Error: fs.existsSync no está disponible')
492
+ process.exit(1)
493
+ }
491
494
 
492
- // Función helper para verificar si existe un archivo/directorio
493
- const fileExists = (filePath) => {
495
+ // Verificar si el proyecto ya está configurado
496
+ const mainTsxPath = path.join(projectRoot, 'src', 'main.tsx')
497
+ const layoutsDir = path.join(projectRoot, 'src', 'layouts')
498
+ const viteConfigPath = path.join(projectRoot, 'vite.config.ts')
499
+
500
+ let isAlreadyConfigured = false
494
501
  try {
495
- return typeof fs.existsSync === 'function' && fs.existsSync(filePath)
502
+ isAlreadyConfigured = fs.existsSync(mainTsxPath) &&
503
+ fs.existsSync(layoutsDir) &&
504
+ fs.existsSync(viteConfigPath)
496
505
  } catch (e) {
497
- return false
506
+ console.error('❌ Error al verificar archivos existentes:', e.message)
507
+ isAlreadyConfigured = false
498
508
  }
499
- }
500
-
501
- const isAlreadyConfigured = fileExists(mainTsxPath) &&
502
- fileExists(layoutsDir) &&
503
- fileExists(viteConfigPath)
504
-
505
- // Función async para manejar la configuración del proyecto
506
- (async () => {
507
509
 
508
510
  // Si el proyecto está vacío, crear estructura base
509
511
  if (isProjectEmpty) {