diff --git a/index.js b/index.js index f9d0b2c..700b2f9 100644 --- a/index.js +++ b/index.js @@ -107,7 +107,7 @@ parse.sync = options => { parse.resolveConfigPath = options => { if (typeof options === 'string') options = { type: options }; const opts = Object.assign({ cwd: process.cwd() }, options); - const fp = opts.path ? expand(opts.path) : configPath(opts.type); + const fp = opts.path ? expand(opts.path) : configPath({ cwd: opts.cwd, type: opts.type }); return fp ? path.resolve(opts.cwd, fp) : null; };