Skip to content

Commit

Permalink
fix: add debug logs for config file path
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Nov 2, 2018
1 parent 6d0bd8c commit 3c8177a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/get-config.js
Expand Up @@ -20,7 +20,10 @@ const CONFIG_FILES = [

module.exports = async (context, opts) => {
const {cwd, env} = context;
const {config} = (await cosmiconfig(CONFIG_NAME, {searchPlaces: CONFIG_FILES}).search(cwd)) || {};
const {config, filepath} = (await cosmiconfig(CONFIG_NAME, {searchPlaces: CONFIG_FILES}).search(cwd)) || {};

debug('load config from: %s', filepath);

// Merge config file options and CLI/API options
let options = {...config, ...opts};
const pluginsPath = {};
Expand Down

0 comments on commit 3c8177a

Please sign in to comment.