Skip to content

Commit

Permalink
fix(cli): --config-register resolves relative to root
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed May 31, 2019
1 parent f6e57a8 commit 23375bd
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 23375bd

Please sign in to comment.