@tinycloud/cli 1.3.6-beta.1 → 1.3.6-beta.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/dist/index.js.map +1 -1
- package/dist/legacy-entry.js +12 -0
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +1 -1
package/dist/legacy-entry.js
CHANGED
|
@@ -458,6 +458,18 @@ async function withSpinner(label, fn) {
|
|
|
458
458
|
if (shouldOutputJson()) {
|
|
459
459
|
return fn();
|
|
460
460
|
}
|
|
461
|
+
if (process.stdout.columns === 0 || process.stderr.columns === 0) {
|
|
462
|
+
try {
|
|
463
|
+
const result = await fn();
|
|
464
|
+
process.stderr.write(`${label}
|
|
465
|
+
`);
|
|
466
|
+
return result;
|
|
467
|
+
} catch (error) {
|
|
468
|
+
process.stderr.write(`${label} failed
|
|
469
|
+
`);
|
|
470
|
+
throw error;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
461
473
|
const spinner = ora(label).start();
|
|
462
474
|
try {
|
|
463
475
|
const result = await fn();
|