Skip to content

Commit

Permalink
resolve the path to the JS config file before requiring it (#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Jul 9, 2017
1 parent d95cbdd commit f31a011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Expand Up @@ -89,7 +89,7 @@ cli.loadConfig = function() {
try {
switch ( path.extname(confPath) ) {
case '.js':
config = require(confPath) || {};
config = require( path.resolve(confPath) ) || {};
break;
case '.json':
case '.EXAMPLE':
Expand Down

0 comments on commit f31a011

Please sign in to comment.