We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6adb3b commit be08907Copy full SHA for be08907
src/configLoader/loader.js
@@ -14,12 +14,12 @@ export default loader;
14
/**
15
* Get content of the configuration file
16
* @param {String} config - partial path to configuration file
17
- * @param {String} cwd - directory path which will be joined with config argument
+ * @param {String} [cwd = process.cwd()] - directory path which will be joined with config argument
18
* @return {Object|undefined}
19
*/
20
function loader (configs, config, cwd) {
21
var content;
22
- var directory = cwd;
+ var directory = cwd || process.cwd();
23
24
// If config option is given, attempt to load it
25
if (config) {
0 commit comments