Skip to content

Commit

Permalink
Wait for eval of commands (#9442)
Browse files Browse the repository at this point in the history
  • Loading branch information
irismoini authored Dec 14, 2023
1 parent 13e6cfd commit ebe4e21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/dev/query/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -915,8 +915,10 @@ export async function run(input: string[]) {
// -------------------------------------------------------

if (initialCmd != null) {
eval(initialCmd);
process.exit(0);
(async () => {
await eval(initialCmd);
process.exit(0);
})();
} else {
console.log(
'See .help. The graphs can be accessed via `assetGraph`, `bundleGraph` and `requestTracker`.',
Expand Down

0 comments on commit ebe4e21

Please sign in to comment.