Browse Source

Export undefined if no module is found

pull/2/head
Luke Childs 7 years ago
parent
commit
8773cd4b98
  1. 2
      src/index.js

2
src/index.js

@ -6,5 +6,5 @@ try {
const modulePath = findRoot(process.cwd());
module.exports = require(modulePath);
} catch (err) {
module.exports = false;
module.exports = undefined;
}

Loading…
Cancel
Save