Skip to content

Commit 2cb815b

Browse files
committed
fix: explicitly exit process with successful code to not leave cli hanging
1 parent 6c0097f commit 2cb815b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/cli/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ import { cli } from './lib/cli.js';
44

55
// bootstrap Yargs, parse arguments and execute command
66
await cli(hideBin(process.argv)).argv;
7+
8+
// we need to explicitly exit with successful code otherwise we risk hanging process in certain situations
9+
// eslint-disable-next-line n/no-process-exit
10+
process.exit(0);

0 commit comments

Comments
 (0)