From 1c261e99636d46d8ec6a1df5c9648c6663045b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor?= Date: Sun, 20 Oct 2024 21:33:02 +0200 Subject: [PATCH] Allow to use the Installer programatically Allow using Installer programatically regardless of the NODE_ENV variable value --- install.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.js b/install.js index 9615159..cc2dc15 100644 --- a/install.js +++ b/install.js @@ -475,7 +475,6 @@ function Deferred() { Object.freeze(this); } +module.exports = Installer; if (require.main === module) - new Installer().install(); -else if (process.env.NODE_ENV === 'test') - module.exports = Installer; + new Installer().install();