From 3c8177aed89cb4e4c279bfa1287bd52a0bf1ef82 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Fri, 2 Nov 2018 14:50:58 -0400 Subject: [PATCH] fix: add debug logs for config file path --- lib/get-config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/get-config.js b/lib/get-config.js index 6ee269ea..b2c94b68 100644 --- a/lib/get-config.js +++ b/lib/get-config.js @@ -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 = {};