bloby-bot 0.47.13 → 0.47.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/bin/cli.js +3 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -1524,8 +1524,10 @@ async function update() {
|
|
|
1524
1524
|
// app permanently broken (e.g. crash loop on a new import). Treat as fatal,
|
|
1525
1525
|
// surface the npm output so the cause is debuggable, and don't claim success.
|
|
1526
1526
|
try {
|
|
1527
|
-
execSync('npm install --omit=dev', { cwd: DATA_DIR, stdio: '
|
|
1527
|
+
execSync('npm install --omit=dev', { cwd: DATA_DIR, stdio: 'pipe', timeout: 300_000 });
|
|
1528
1528
|
} catch (e) {
|
|
1529
|
+
if (e.stdout) process.stderr.write(e.stdout);
|
|
1530
|
+
if (e.stderr) process.stderr.write(e.stderr);
|
|
1529
1531
|
console.log(`\n ${c.red}✗${c.reset} npm install failed during update: ${e.message}`);
|
|
1530
1532
|
console.log(` Your install is now partially upgraded. To recover:\n cd ~/.bloby && npm install --omit=dev\n`);
|
|
1531
1533
|
fs.rmSync(tmpDir, { recursive: true, force: true });
|