File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const fs = require('fs-extra')
44const path = require ( 'path' )
55
66const ora = require ( 'ora' )
7+ const prettyHrtime = require ( 'pretty-hrtime' )
78const stdin = require ( 'get-stdin' )
89const read = require ( 'read-cache' )
910const chalk = require ( 'chalk' )
@@ -326,7 +327,7 @@ function css (css, file) {
326327 }
327328 } else {
328329 spinner . text = chalk . bold . green (
329- `Finished ${ relativePath } (${ Math . round ( process . hrtime ( time ) [ 1 ] / 1e6 ) } ms )`
330+ `Finished ${ relativePath } (${ prettyHrtime ( process . hrtime ( time ) ) } )`
330331 )
331332 spinner . succeed ( )
332333 return process . stdout . write ( result . css , 'utf8' )
@@ -335,7 +336,7 @@ function css (css, file) {
335336 return Promise . all ( tasks )
336337 . then ( ( ) => {
337338 spinner . text = chalk . bold . green (
338- `Finished ${ relativePath } (${ Math . round ( process . hrtime ( time ) [ 1 ] / 1e6 ) } ms )`
339+ `Finished ${ relativePath } (${ prettyHrtime ( process . hrtime ( time ) ) } )`
339340 )
340341 if ( result . warnings ( ) . length ) {
341342 spinner . fail ( )
Original file line number Diff line number Diff line change 2626 "postcss" : " ^6.0.1" ,
2727 "postcss-load-config" : " ^1.1.0" ,
2828 "postcss-reporter" : " ^4.0.0" ,
29+ "pretty-hrtime" : " ^1.0.3" ,
2930 "read-cache" : " ^1.0.0" ,
3031 "yargs" : " ^8.0.1"
3132 },
You can’t perform that action at this time.
0 commit comments