We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa619b commit 3e45470Copy full SHA for 3e45470
src/argv.ts
@@ -61,7 +61,12 @@ export class Argv {
61
for (const [key, value] of Object.entries(config)) {
62
const argKey = camelCase(key);
63
if (argv[argKey] == null) {
64
- this.map.set(argKey, value);
+ // Work around `dotenv.parse` limitation https://github.com/motdotla/dotenv/issues/51#issuecomment-552559070
65
+ if (value === "true") this.map.set(argKey, true);
66
+ else if (value === "false") this.map.set(argKey, false);
67
+ else if (value === "null") this.map.set(argKey, null);
68
+ else if (!isNaN(Number(value))) this.map.set(argKey, Number(value));
69
+ else this.map.set(argKey, value);
70
}
71
72
0 commit comments