feat(build): log duration for each task, use humanized format

modify log format, use dash instead of parenthesis
pull/3385/head
Yuxuan Zhang 2 years ago
parent d0b34f635d
commit 0b37eff97e
No known key found for this signature in database
GPG Key ID: 6910B04F3351EF7D

@ -21,7 +21,7 @@ export async function task(taskName: string, task: () => Promise<void>) {
const duration = humanizeDuration(timeEnd - timeStart, { const duration = humanizeDuration(timeEnd - timeStart, {
maxDecimalPoints: 2 maxDecimalPoints: 2
}) })
const text = `${taskName} (${duration})` const text = `${taskName} - ${duration}`
spinner.stopAndPersist({ symbol, text }) spinner.stopAndPersist({ symbol, text })
} }
} }

Loading…
Cancel
Save