Skip to content

Commit

Permalink
fix(cli): only attempt to read the configuration file if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse White committed Jun 21, 2017
1 parent 152d248 commit 2339c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CLI.ts
Expand Up @@ -28,7 +28,7 @@ function CLI() {
function readConfig() { function readConfig() {
const configfile = program.config || defaultConfigFile; const configfile = program.config || defaultConfigFile;
let config; let config;
if (fs.exists) { if (fs.existsSync(configfile)) {
config = JSON.parse(fs.readFileSync(configfile)); config = JSON.parse(fs.readFileSync(configfile));
} else { } else {
config = { config = {
Expand Down

0 comments on commit 2339c6d

Please sign in to comment.