elsabro 3.8.0 → 3.8.1
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/bin/install.js +14 -1
- package/commands/elsabro/update.md +5 -1
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -249,12 +249,25 @@ if (hasUpdate) {
|
|
|
249
249
|
try {
|
|
250
250
|
// Use execFileSync with the package manager directly
|
|
251
251
|
// Use getExecutable for Windows compatibility
|
|
252
|
+
// IMPORTANT: Use --yes and clear npm cache to force fresh download from registry
|
|
252
253
|
if (packageManager === 'pnpm') {
|
|
254
|
+
// pnpm dlx always fetches fresh
|
|
253
255
|
execFileSync(getExecutable('pnpm'), ['dlx', 'elsabro@latest', '--global'], { stdio: 'inherit' });
|
|
254
256
|
} else if (packageManager === 'bun') {
|
|
257
|
+
// bunx fetches fresh by default
|
|
255
258
|
execFileSync(getExecutable('bunx'), ['elsabro@latest', '--global'], { stdio: 'inherit' });
|
|
256
259
|
} else {
|
|
257
|
-
|
|
260
|
+
// npm/npx: use --yes to skip prompts and clear cache for this package first
|
|
261
|
+
// This ensures we get the latest version from registry, not from cache
|
|
262
|
+
try {
|
|
263
|
+
execFileSync(getExecutable('npm'), ['cache', 'clean', '--force', 'elsabro'], {
|
|
264
|
+
stdio: 'pipe',
|
|
265
|
+
timeout: 10000
|
|
266
|
+
});
|
|
267
|
+
} catch {
|
|
268
|
+
// Ignore cache clean errors - not critical
|
|
269
|
+
}
|
|
270
|
+
execFileSync(getExecutable('npx'), ['--yes', 'elsabro@latest', '--global'], { stdio: 'inherit' });
|
|
258
271
|
}
|
|
259
272
|
console.log(`\n ${green}✓${reset} ELSABRO actualizado correctamente\n`);
|
|
260
273
|
} catch (error) {
|
|
@@ -31,7 +31,9 @@ Según el package manager:
|
|
|
31
31
|
|
|
32
32
|
**NPM:**
|
|
33
33
|
```bash
|
|
34
|
-
|
|
34
|
+
# Limpiar caché para forzar descarga fresh desde registry
|
|
35
|
+
npm cache clean --force elsabro 2>/dev/null || true
|
|
36
|
+
npx --yes elsabro@latest --global --update
|
|
35
37
|
```
|
|
36
38
|
|
|
37
39
|
**PNPM:**
|
|
@@ -44,6 +46,8 @@ pnpm dlx elsabro@latest --global
|
|
|
44
46
|
bunx elsabro@latest --global
|
|
45
47
|
```
|
|
46
48
|
|
|
49
|
+
**IMPORTANTE:** El flag `--yes` en npx fuerza la descarga fresh desde npm registry en lugar de usar la versión cacheada.
|
|
50
|
+
|
|
47
51
|
## Paso 4: Verificar actualización
|
|
48
52
|
|
|
49
53
|
```bash
|
package/package.json
CHANGED