Skip to content

Commit

Permalink
Merge pull request #78 from lnasc256/fix/config-options
Browse files Browse the repository at this point in the history
[2/2] fixes dotenv-expand/config with env or cli args
  • Loading branch information
motdotla authored Aug 30, 2022
2 parents ed5fea5 + a3c1189 commit 952eda5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
@@ -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 952eda5

Please sign in to comment.