responsive-system 1.7.13 → 1.7.14

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.13",
3
+ "version": "1.7.14",
4
4
  "description": "Sistema de layout responsivo con auto-scaling para Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "./dist/responsive-system.cjs",
@@ -52,8 +52,9 @@ if (!isFromNodeModules) {
52
52
  process.exit(0)
53
53
  }
54
54
 
55
- // Ejecutar inmediatamente cuando se detecta que está en node_modules
55
+ // EJECUTAR INMEDIATAMENTE cuando se detecta que está en node_modules
56
56
  // Esto permite que el script se ejecute automáticamente sin depender de npm hooks
57
+ // El script se ejecuta cuando npm instala el paquete, gracias al hook "install" en package.json
57
58
  console.log('')
58
59
  console.log('📦 responsive-system: Iniciando configuración automática...')
59
60
  console.log(` Directorio: ${projectRoot}`)
@@ -476,15 +477,6 @@ if (!packageJson.type) {
476
477
  needsUpdate = true
477
478
  }
478
479
 
479
- // Agregar script postinstall al package.json del proyecto consumidor para ejecutar automáticamente
480
- if (!packageJson.scripts) {
481
- packageJson.scripts = {}
482
- }
483
- if (!packageJson.scripts.postinstall) {
484
- packageJson.scripts.postinstall = 'node node_modules/responsive-system/scripts/postinstall.js'
485
- needsUpdate = true
486
- }
487
-
488
480
  // Escribir package.json modificado
489
481
  if (needsUpdate) {
490
482
  console.log('')