fix(cli): correct --root flag logic (#135)

Fixes #134
This commit is contained in:
Robert Kieffer
2018-12-21 14:44:13 -08:00
committed by Tyler Stewart
parent e41b04be46
commit a5f26480e5

View File

@@ -70,9 +70,9 @@ function setupState(_args) {
function setupRoot() {
const dirPath = _args.root;
if (dirPath) {
_state.root = process.cwd();
} else {
_state.root = dirPath;
} else {
_state.root = process.cwd();
}
}