From a3c1189a6087b70b0ebda925b0dcebea22cc1db2 Mon Sep 17 00:00:00 2001 From: lucas nascimento Date: Sat, 11 Jun 2022 18:17:02 -0300 Subject: [PATCH] fixed config options when using env or args (from 20577e3baabe4cbe230809b915b9c792a8a6635a) --- config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config.js b/config.js index e193fbc..066e8d8 100644 --- a/config.js +++ b/config.js @@ -1,7 +1,13 @@ (function () { const dotenvExpand = require('./lib/main').expand - const env = require('dotenv').config() + const env = require('dotenv').config( + Object.assign( + {}, + require('dotenv/lib/env-options'), + require('dotenv/lib/cli-options')(process.argv) + ) + ) return dotenvExpand(env) })()