diff --git a/src/index.js b/src/index.js index c1e2f151..9c7f5fa1 100644 --- a/src/index.js +++ b/src/index.js @@ -218,7 +218,7 @@ async function getInput({ entries, cwd, source, module }) { (await jsOrTs(cwd, 'index')) || module, ) - .map(file => glob(file)) + .map(file => glob(file, { cwd })) .forEach(file => input.push(...file)); return input;