From bc86a175d43f2df3297a5f5ef3652fad3ef05be5 Mon Sep 17 00:00:00 2001 From: AgentEnder Date: Mon, 23 Oct 2023 10:38:07 -0400 Subject: [PATCH] fix(core): await output drain before exiting show --- packages/nx/src/command-line/show/show.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nx/src/command-line/show/show.ts b/packages/nx/src/command-line/show/show.ts index 4e48942fcdc68..4424da290db04 100644 --- a/packages/nx/src/command-line/show/show.ts +++ b/packages/nx/src/command-line/show/show.ts @@ -1,3 +1,4 @@ +import { output } from '../../utils/output'; import { NxJsonConfiguration, readNxJson } from '../../config/nx-json'; import { ProjectGraph, @@ -78,6 +79,7 @@ export async function showProjectsHandler( console.log(project); } } + await output.drain(); process.exit(0); }