Skip to content

Commit

Permalink
fix(cli): await the yargs.parse call in esm.ts (#4272)
Browse files Browse the repository at this point in the history
Related to #4265


3757472
did fix the call in `cli.ts` but forgot to update `esm.ts`.
  • Loading branch information
DASPRiD committed Apr 25, 2023
1 parent 01d6a39 commit dcdf70a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/esm.ts
Expand Up @@ -11,7 +11,8 @@ import { CLIHelper } from './CLIHelper';
import { CLIConfigurator } from './CLIConfigurator';

(async () => {
const args = (await CLIConfigurator.configure()).parse(process.argv.slice(2)) as { _: string[] };
const argv = await CLIConfigurator.configure();
const args = await argv.parse(process.argv.slice(2)) as { _: string[] };

if (args._.length === 0) {
CLIHelper.showHelp();
Expand Down

0 comments on commit dcdf70a

Please sign in to comment.