From 7a7824f249db7a604a6d8a3e76c95175f6cd05be Mon Sep 17 00:00:00 2001 From: Vojtech Masek Date: Fri, 14 Feb 2025 11:11:27 +0100 Subject: [PATCH] fix: explicitly exit process with successful code to not leave cli hanging --- packages/cli/src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index b43351712..8f4e11708 100755 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -4,3 +4,7 @@ import { cli } from './lib/cli.js'; // bootstrap Yargs, parse arguments and execute command await cli(hideBin(process.argv)).argv; + +// we need to explicitly exit with successful code otherwise we risk hanging process in certain situations +// eslint-disable-next-line n/no-process-exit +process.exit(0);