Permalink
Browse files

fix(cli): only attempt to read the configuration file if it exists

  • Loading branch information...
j-white committed Jun 21, 2017
1 parent 152d248 commit 2339c6d9118d8782ceb371206a84ef2d1efc49d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/CLI.ts
View
@@ -28,7 +28,7 @@ function CLI() {
function readConfig() {
const configfile = program.config || defaultConfigFile;
let config;
if (fs.exists) {
if (fs.existsSync(configfile)) {
config = JSON.parse(fs.readFileSync(configfile));
} else {
config = {

0 comments on commit 2339c6d

Please sign in to comment.