Skip to content

Commit

Permalink
fix: type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Jul 21, 2022
1 parent a12b473 commit 1e16ad2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/workers/global/config/parse/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,18 @@ export function getConfig(inputEnv: NodeJS.ProcessEnv): AllConfig {
const coerce = coersions[option.type];
config[option.name] = coerce(envVal);
if (option.name === 'dryRun') {
if (config[option.name] === 'true') {
if ((config[option.name] as string) === 'true') {
logger.warn(
'env config dryRun property has been changed to full'
);
config[option.name] = 'full';
} else if (config[option.name] === 'false') {
} else if ((config[option.name] as string) === 'false') {
logger.warn(
'env config dryRun property has been changed to null'
);
config[option.name] = null;
} else if (config[option.name] === 'null') {
config[option.name] = null;
delete config[option.name];
} else if ((config[option.name] as string) === 'null') {
delete config[option.name];
}
}
if (option.name === 'requireConfig') {
Expand Down

0 comments on commit 1e16ad2

Please sign in to comment.