responsive-system 1.0.3 → 1.0.4

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.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Sistema de layout responsivo con auto-scaling para Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "./dist/responsive-system.cjs",
@@ -47,8 +47,12 @@ if (!hasReact) {
47
47
  }
48
48
 
49
49
  // Siempre instalar Tailwind en el proyecto raíz (aunque esté en responsive-system)
50
- // Esto asegura que npx tailwindcss funcione
51
- if (!hasTailwind || !fs.existsSync(path.join(projectRoot, 'node_modules', 'tailwindcss'))) {
50
+ // Verificar específicamente en node_modules del proyecto raíz y en devDependencies
51
+ const tailwindInRoot = fs.existsSync(path.join(projectRoot, 'node_modules', 'tailwindcss'))
52
+ const tailwindInDevDeps = packageJson.devDependencies && packageJson.devDependencies.tailwindcss
53
+
54
+ if (!tailwindInRoot || !tailwindInDevDeps) {
55
+ // Instalar como devDependencies para que npx funcione
52
56
  packagesToInstall.push('tailwindcss@^4.1.14', 'postcss@^8.5.6', 'autoprefixer@^10.4.21')
53
57
  needsInstall = true
54
58
  }