From 09cd6105245f2a8624baa8eb589510d164e413b2 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Tue, 3 Jan 2017 05:49:37 +0900 Subject: [PATCH] Add @types/is-root --- package.json | 1 + src/index.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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';