Skip to content

fix: drain JSON stdout before exit - #2

Merged
vitaliytv merged 2 commits into
mainfrom
fix/json-stdout-drain
Aug 29, 2026
Merged

fix: drain JSON stdout before exit#2
vitaliytv merged 2 commits into
mainfrom
fix/json-stdout-drain

Conversation

@vitaliytv

Copy link
Copy Markdown
Member

Summary

  • replace forced process.exit() with process.exitCode so large JSON output drains through pipes
  • add a regression contract for the CLI exit path
  • run the full test suite in CI and the npm publish workflow

Verification

  • npm test
  • node --check bin/cli.mjs
  • git diff --check

@vitaliytv
vitaliytv merged commit 734c5f4 into main Aug 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant