diff --git a/packages/nx/src/command-line/show/show.ts b/packages/nx/src/command-line/show/show.ts index 4e48942fcdc686..4435f2808c3f3d 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 'nx/src/devkit-exports'; 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); }