Skip to content

Await runCLI in entry point#399

Merged
TimNooren merged 1 commit intomainfrom
await-entry-point
Apr 7, 2026
Merged

Await runCLI in entry point#399
TimNooren merged 1 commit intomainfrom
await-entry-point

Conversation

@TimNooren
Copy link
Copy Markdown
Contributor

Summary

  • Adds await to runCLI(process.argv.slice(2)) in src/index.js
  • Guarantees telemetry flushes before process exit, independent of Node.js fetch ref behavior

Test plan

  • npm test passes
  • node src/index.js foo exits with code 1 and telemetry is sent

Ensures telemetry flushes before process exit regardless of Node.js
fetch ref behavior.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@TimNooren TimNooren force-pushed the await-entry-point branch from 48248d9 to 8dfcc96 Compare April 7, 2026 13:19
@TimNooren TimNooren merged commit ea88a41 into main Apr 7, 2026
7 checks passed
@TimNooren TimNooren deleted the await-entry-point branch April 7, 2026 13:31
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