summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.ts2
-rw-r--r--src/utils/cli/progressbar.ts2
-rw-r--r--src/utils/logger.ts4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/index.ts b/src/index.ts
index aa53c91239..218455d6f4 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -8,7 +8,7 @@ import * as fs from 'fs';
import * as os from 'os';
import * as cluster from 'cluster';
import * as debug from 'debug';
-import * as chalk from 'chalk';
+import chalk from 'chalk';
// import portUsed = require('tcp-port-used');
import isRoot = require('is-root');
import { master } from 'accesses';
diff --git a/src/utils/cli/progressbar.ts b/src/utils/cli/progressbar.ts
index 4afb4b0904..72496fdedc 100644
--- a/src/utils/cli/progressbar.ts
+++ b/src/utils/cli/progressbar.ts
@@ -1,6 +1,6 @@
import { EventEmitter } from 'events';
import * as readline from 'readline';
-import * as chalk from 'chalk';
+import chalk from 'chalk';
/**
* Progress bar
diff --git a/src/utils/logger.ts b/src/utils/logger.ts
index ecfacbc952..fae1042c39 100644
--- a/src/utils/logger.ts
+++ b/src/utils/logger.ts
@@ -1,8 +1,8 @@
-import * as chalk from 'chalk';
+import chalk, { Chalk } from 'chalk';
export type LogLevel = 'Error' | 'Warn' | 'Info';
-function toLevelColor(level: LogLevel): chalk.ChalkStyle {
+function toLevelColor(level: LogLevel): Chalk {
switch (level) {
case 'Error': return chalk.red;
case 'Warn': return chalk.yellow;