responsive-system 1.7.0 → 1.7.2

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.0",
3
+ "version": "1.7.2",
4
4
  "description": "Sistema de layout responsivo con auto-scaling para Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "./dist/responsive-system.cjs",
@@ -482,8 +482,10 @@ const mainTsxPath = path.join(projectRoot, 'src', 'main.tsx')
482
482
  const layoutsDir = path.join(projectRoot, 'src', 'layouts')
483
483
  const isAlreadyConfigured = fs.existsSync(mainTsxPath) && fs.existsSync(layoutsDir) && fs.existsSync(path.join(projectRoot, 'vite.config.ts'))
484
484
 
485
- // Si el proyecto está vacío, crear estructura base
486
- if (isProjectEmpty) {
485
+ // Función async para manejar la configuración del proyecto
486
+ (async () => {
487
+ // Si el proyecto está vacío, crear estructura base
488
+ if (isProjectEmpty) {
487
489
  // Si ya está configurado, preguntar si quiere sobrescribir
488
490
  if (isAlreadyConfigured) {
489
491
  console.log('')
@@ -967,10 +969,14 @@ export default App
967
969
  console.log('')
968
970
  console.log('💡 Para cambiar el layout: npx responsive-system-setup')
969
971
  console.log('')
970
- } else {
971
- console.log('✅ Proyecto ya inicializado')
972
- }
972
+ } else {
973
+ console.log('✅ Proyecto ya inicializado')
974
+ }
973
975
 
974
- console.log('')
975
- console.log('✅ Configuración completada')
976
- console.log('')
976
+ console.log('')
977
+ console.log('✅ Configuración completada')
978
+ console.log('')
979
+ })().catch((error) => {
980
+ console.error('❌ Error durante la configuración:', error)
981
+ process.exit(1)
982
+ })