elsabro 3.8.0 → 3.8.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/bin/install.js +6 -1
- package/commands/elsabro/update.md +3 -1
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -249,12 +249,17 @@ 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 exec: more reliable than npx for executing remote packages
|
|
261
|
+
// Use --yes to skip prompts and ensure fresh download from registry
|
|
262
|
+
execFileSync(getExecutable('npm'), ['exec', '--yes', '--', 'elsabro@latest', '--global'], { stdio: 'inherit' });
|
|
258
263
|
}
|
|
259
264
|
console.log(`\n ${green}✓${reset} ELSABRO actualizado correctamente\n`);
|
|
260
265
|
} catch (error) {
|
|
@@ -31,7 +31,7 @@ Según el package manager:
|
|
|
31
31
|
|
|
32
32
|
**NPM:**
|
|
33
33
|
```bash
|
|
34
|
-
|
|
34
|
+
npm exec --yes -- elsabro@latest --global --update
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
**PNPM:**
|
|
@@ -44,6 +44,8 @@ pnpm dlx elsabro@latest --global
|
|
|
44
44
|
bunx elsabro@latest --global
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
**IMPORTANTE:** Usamos `npm exec` en lugar de `npx` porque es más confiable para ejecutar paquetes remotos y siempre descarga la versión más reciente del registry.
|
|
48
|
+
|
|
47
49
|
## Paso 4: Verificar actualización
|
|
48
50
|
|
|
49
51
|
```bash
|
package/package.json
CHANGED