Skip to content

Commit

Permalink
fixed config options when using env or args
Browse files Browse the repository at this point in the history
(from 20577e3)
  • Loading branch information
lnasc256 committed Jun 11, 2022
1 parent 6c9ea2a commit a3c1189
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 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)
})()

0 comments on commit a3c1189

Please sign in to comment.