From 73e7711776d3c2a95802f093111ab3c95a0b1f12 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 22 Feb 2022 12:50:37 +0700 Subject: [PATCH] Fix not passing an options-object Fixes #26 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f623cc7..22b4b15 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ function getMainProcessPaths(topModuleObject, cwd) { return paths; } -module.exports = (moduleObject, options) => { +module.exports = (moduleObject, options = {}) => { // This module should be a dev dependency, but guard // this in case the user included it as a dependency. if (!isDev) {