From be08907b1b549800e5735eb758d66366566452f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Tue, 5 May 2020 13:11:58 +0100 Subject: [PATCH] fix: make cwd argument optional again (#735) --- src/configLoader/loader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configLoader/loader.js b/src/configLoader/loader.js index ba34f509..e4472d8e 100644 --- a/src/configLoader/loader.js +++ b/src/configLoader/loader.js @@ -14,12 +14,12 @@ export default loader; /** * Get content of the configuration file * @param {String} config - partial path to configuration file - * @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 * @return {Object|undefined} */ function loader (configs, config, cwd) { var content; - var directory = cwd; + var directory = cwd || process.cwd(); // If config option is given, attempt to load it if (config) {