Skip to content

Commit

Permalink
fix(io): revert change to ensure process.exit(0) is retained
Browse files Browse the repository at this point in the history
Reverted the previous modification. The original approach is reinstated to prevent breaking other examples, as highlighted in the PR review.

Ref: i-am-bee#121
Signed-off-by: Matias Molinas <[email protected]>
  • Loading branch information
matiasmolinas committed Jan 4, 2025
1 parent cc1627e commit ae19ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/helpers/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function createConsoleReader({
for await (const { prompt } of this) {
return prompt;
}
return "";
process.exit(0);
},

async askSingleQuestion(queryMessage: string): Promise<string> {
Expand Down

0 comments on commit ae19ae2

Please sign in to comment.