Skip to content

Commit

Permalink
Added node cli require support the same way dotenv does it
Browse files Browse the repository at this point in the history
  • Loading branch information
Logikgate committed Oct 29, 2019
1 parent bbf8e9e commit 20577e3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(function () {
const dotenvExpand = require('./lib/main');
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 20577e3

Please sign in to comment.