dotenv-cli
Advanced tools
Comparing version
12
cli.js
@@ -84,7 +84,11 @@ #!/usr/bin/env node | ||
paths.forEach(function (env) { | ||
const parsedFile = dotenv.config({ path: path.resolve(env), override }) | ||
if (argv.expand !== false) { | ||
dotenvExpand(parsedFile) | ||
} | ||
dotenv.config({ path: path.resolve(env), override }) | ||
}) | ||
// Expand when all path configs are loaded | ||
if (argv.expand !== false) { | ||
dotenvExpand({ | ||
parsed: process.env | ||
}); | ||
} | ||
Object.assign(process.env, parsedVariables) | ||
@@ -91,0 +95,0 @@ |
{ | ||
"name": "dotenv-cli", | ||
"description": "A global executable to run applications with the ENV variables loaded by dotenv", | ||
"version": "7.4.4", | ||
"version": "8.0.0", | ||
"author": "entropitor", | ||
@@ -6,0 +6,0 @@ "bin": { |
10589
4.05%6
50%106
2.91%4
33.33%