@@ -6,7 +6,7 @@ const path = require('path')
66const prettyHrtime = require ( 'pretty-hrtime' )
77const stdin = require ( 'get-stdin' )
88const read = require ( 'read-cache' )
9- const chalk = require ( 'chalk ' )
9+ const { bold , dim , red , cyan , green } = require ( 'colorette ' )
1010const globber = require ( 'globby' )
1111const slash = require ( 'slash' )
1212const chokidar = require ( 'chokidar' )
@@ -106,7 +106,7 @@ Promise.resolve()
106106 . then ( ( results ) => {
107107 if ( argv . watch ) {
108108 const printMessage = ( ) =>
109- printVerbose ( chalk . dim ( '\nWaiting for file changes...' ) )
109+ printVerbose ( dim ( '\nWaiting for file changes...' ) )
110110 const watcher = chokidar . watch ( input . concat ( dependencies ( results ) ) , {
111111 usePolling : argv . poll ,
112112 interval : argv . poll && typeof argv . poll === 'number' ? argv . poll : 100 ,
@@ -197,7 +197,7 @@ function css(css, file) {
197197
198198 const time = process . hrtime ( )
199199
200- printVerbose ( chalk `{ cyan Processing {bold ${ relativePath } } ...}` )
200+ printVerbose ( cyan ( ` Processing ${ bold ( relativePath ) } ...` ) )
201201
202202 return rc ( ctx , argv . config )
203203 . then ( ( config ) => {
@@ -245,7 +245,7 @@ function css(css, file) {
245245 return Promise . all ( tasks ) . then ( ( ) => {
246246 const prettyTime = prettyHrtime ( process . hrtime ( time ) )
247247 printVerbose (
248- chalk `{ green Finished {bold ${ relativePath } } in {bold ${ prettyTime } }}`
248+ green ( ` Finished ${ bold ( relativePath ) } in ${ bold ( prettyTime ) } ` )
249249 )
250250
251251 const messages = result . warnings ( )
@@ -288,7 +288,7 @@ function error(err) {
288288 if ( argv . verbose ) console . error ( )
289289
290290 if ( typeof err === 'string' ) {
291- console . error ( chalk . red ( err ) )
291+ console . error ( red ( err ) )
292292 } else if ( err . name === 'CssSyntaxError' ) {
293293 console . error ( err . toString ( ) )
294294 } else {
0 commit comments