Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
fix: middleware to run before validation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLeedham committed Jan 2, 2020
1 parent 0ba114e commit 91f5b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ yargs
if (typeof key === 'string') {
const parts = key.split(/(?=[A-Z])(?<![A-Z])/);
const envar = ['BAA', ...parts].join('_').toUpperCase();
if (envar && process.env[envar]) argv[envar] = process.env[envar];
if (envar && process.env[envar]) argv[key] = process.env[envar];
}
}
})
}, true)
// Default command to generate and print stats data.
.command(
'$0',
Expand Down

0 comments on commit 91f5b76

Please sign in to comment.