responsive-system 1.1.4 → 1.1.5
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 +4 -1
- package/scripts/postinstall.js +8 -1
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "responsive-system",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Sistema de layout responsivo con auto-scaling para Tailwind CSS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/responsive-system.cjs",
|
|
7
7
|
"module": "./dist/responsive-system.mjs",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"responsive-system-setup": "./scripts/postinstall.js"
|
|
11
|
+
},
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
14
|
"import": {
|
package/scripts/postinstall.js
CHANGED
|
@@ -86,6 +86,7 @@ if (!tailwindInDevDeps) {
|
|
|
86
86
|
packageJson.devDependencies = {}
|
|
87
87
|
}
|
|
88
88
|
packageJson.devDependencies['tailwindcss'] = '^4.1.14'
|
|
89
|
+
packageJson.devDependencies['@tailwindcss/postcss'] = '^4.1.14'
|
|
89
90
|
packageJson.devDependencies['postcss'] = '^8.5.6'
|
|
90
91
|
packageJson.devDependencies['autoprefixer'] = '^10.4.21'
|
|
91
92
|
needsUpdate = true
|
|
@@ -102,6 +103,12 @@ if (!typescriptInDevDeps) {
|
|
|
102
103
|
needsUpdate = true
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
// Agregar "type": "module" si no existe (para evitar warnings)
|
|
107
|
+
if (!packageJson.type) {
|
|
108
|
+
packageJson.type = 'module'
|
|
109
|
+
needsUpdate = true
|
|
110
|
+
}
|
|
111
|
+
|
|
105
112
|
// Escribir package.json modificado
|
|
106
113
|
if (needsUpdate) {
|
|
107
114
|
console.log('')
|
|
@@ -202,7 +209,7 @@ export default {
|
|
|
202
209
|
if (!fs.existsSync(postcssConfigPath)) {
|
|
203
210
|
const postcssConfig = `export default {
|
|
204
211
|
plugins: {
|
|
205
|
-
tailwindcss: {},
|
|
212
|
+
'@tailwindcss/postcss': {},
|
|
206
213
|
autoprefixer: {},
|
|
207
214
|
},
|
|
208
215
|
}
|