Skip to content

Commit

Permalink
Merge pull request #903 from jamesgeorge007/bugfix/relative-path-fixup
Browse files Browse the repository at this point in the history
fix(cli): made --config-register resolve relative to root path
  • Loading branch information
evenstensberg committed May 31, 2019
2 parents f6e57a8 + 23375bd commit ce8f6e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/utils/convert-argv.js
Expand Up @@ -110,9 +110,9 @@ module.exports = function(...args) {
argv.configRegister.forEach(dep => {
require(dep);
});
return require(configPath);
return require(path.resolve(process.cwd(), configPath));
} else {
return require(configPath);
return require(path.resolve(process.cwd(), configPath));
}
})();
options = prepareOptions(options, argv);
Expand Down

0 comments on commit ce8f6e1

Please sign in to comment.