diff --git a/src/api/dev.ts b/src/api/dev.ts index 483c918..810d99c 100644 --- a/src/api/dev.ts +++ b/src/api/dev.ts @@ -490,7 +490,7 @@ function watch_dir( let watch: any; let closed = false; - import('cheap-watch').then(CheapWatch => { + import('cheap-watch').then(({ default: CheapWatch }) => { if (closed) return; watch = new CheapWatch({ dir, filter, debounce: 50 }); diff --git a/src/cli.ts b/src/cli.ts index 748ef5e..5c75cb6 100755 --- a/src/cli.ts +++ b/src/cli.ts @@ -226,7 +226,7 @@ prog.command('export [dest]') }, onfile: event => { - const size_color = event.size > 150000 ? colors.bold()().red : event.size > 50000 ? colors.bold()().yellow : colors.bold()().gray; + const size_color = event.size > 150000 ? colors.bold().red : event.size > 50000 ? colors.bold().yellow : colors.bold().gray; const size_label = size_color(left_pad(pb(event.size), 10)); const file_label = event.status === 200 @@ -278,7 +278,7 @@ async function _build( console.log(); console.log(c(`┌─${repeat('─', banner.length)}─┐`)); - console.log(c(`│ ${colors.bold()(banner) } │`)); + console.log(c(`│ ${colors.bold(banner) } │`)); console.log(c(`└─${repeat('─', banner.length)}─┘`)); console.log(event.result.print());