refactor: make build-fixtures slient when not support tty

This commit is contained in:
Clark Du 2018-03-19 14:08:23 +08:00
parent c12c5502ee
commit f9ccbb5754
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -52,7 +52,7 @@ const concurrency = Math.min(4, cpus().length)
new Listr([{
title: `Build ${fixtures.length} fixtures with concurrency of ${concurrency}`,
task: () => new Listr(tasks, {concurrent: concurrency})
}])
}], { nonTTYRenderer: 'silent' })
.run()
.catch(console.error) // eslint-disable-line no-console
.then(() => process.exit(0))