Skip to content

Commit 23375bd

Browse files
fix(cli): --config-register resolves relative to root
1 parent f6e57a8 commit 23375bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/utils/convert-argv.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ module.exports = function(...args) {
110110
argv.configRegister.forEach(dep => {
111111
require(dep);
112112
});
113-
return require(configPath);
113+
return require(path.resolve(process.cwd(), configPath));
114114
} else {
115-
return require(configPath);
115+
return require(path.resolve(process.cwd(), configPath));
116116
}
117117
})();
118118
options = prepareOptions(options, argv);

0 commit comments

Comments
 (0)