diff --git a/package.json b/package.json index b65b283a8a..13cf6dcaa1 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "@types/gulp-uglify": "0.0.29", "@types/gulp-util": "3.0.30", "@types/inquirer": "0.0.32", + "@types/is-root": "1.0.0", "@types/js-yaml": "3.5.29", "@types/mongodb": "2.1.36", "@types/ms": "0.7.29", diff --git a/src/index.ts b/src/index.ts index 5ce5f0ecf7..df96e6b637 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,7 +13,7 @@ import * as cluster from 'cluster'; import Logger from './utils/logger'; import * as chalk from 'chalk'; const portUsed = require('tcp-port-used'); -const isRoot = require('is-root'); +import isRoot = require('is-root'); import ProgressBar from './utils/cli/progressbar'; import initdb from './db/mongodb'; import LastCommitInfo from './utils/lastCommitInfo';