Skip to content

Commit 1f4ed58

Browse files
committed
fix(scripts/ci): ensure width is always calculated, even in CI
1 parent 5abba81 commit 1f4ed58

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

scripts/ci/mod.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ export async function runCommands(
2626
}
2727

2828
if (idx !== processes.length - 1) {
29-
console.log(`\n${bold('-'.repeat(Deno.consoleSize().columns))}\n\n`);
29+
const width = (() => {
30+
try {
31+
return Deno.consoleSize().columns;
32+
} catch {
33+
return 10;
34+
}
35+
})();
36+
37+
console.log(`\n${bold('-'.repeat(width))}\n\n`);
3038
}
3139
}
3240
}

0 commit comments

Comments
 (0)