minor fixes

This commit is contained in:
Richard Harris
2019-02-03 12:51:29 -05:00
parent 3d7cfbbf3d
commit 0628ea99ab
2 changed files with 3 additions and 3 deletions

View File

@@ -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 });

View File

@@ -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());