Don't group bundle install output

* So any error from Bundler is immediately shown.
* Some users do not realize they should expand the group apparently.
This commit is contained in:
Benoit Daloze
2023-02-11 13:45:25 +01:00
parent a26e1fb6b3
commit 2cf593d66b
3 changed files with 29 additions and 2 deletions
+13
View File
@@ -47,6 +47,19 @@ export async function measure(name, block) {
}
}
// Same as mesaure() but without the group
export async function time(name, block) {
console.log(`> ${name}`)
const start = performance.now()
try {
return await block()
} finally {
const end = performance.now()
const duration = (end - start) / 1000.0
console.log(`Took ${duration.toFixed(2).padStart(6)} seconds`)
}
}
export function isHeadVersion(rubyVersion) {
return ['head', 'debug', 'mingw', 'mswin', 'ucrt'].includes(rubyVersion)
}