Skip to content

fix: redirect bundling problems to stderr instead on stdout#2541

Merged
tatomyr merged 1 commit intomainfrom
fix/put-bundle-problems-to-stderr
Feb 6, 2026
Merged

fix: redirect bundling problems to stderr instead on stdout#2541
tatomyr merged 1 commit intomainfrom
fix/put-bundle-problems-to-stderr

Conversation

@tatomyr
Copy link
Collaborator

@tatomyr tatomyr commented Feb 5, 2026

What/Why/How?

Redirected bundling problems (such as lint errors and warnings) to stderr instead of stdout to avoid interfering with the bundled output.

One more related improvement coming next.

Reference

Addresses #661 (comment).

Created as a potential replacement for #2525.

Testing

Screenshots (optional)

Check yourself

  • Code changed? - Tested with Redoc/Realm/Reunite (internal)
  • All new/updated code is covered by tests
  • New package installed? - Tested in different environments (browser/node)
  • Documentation update considered

Security

  • The security impact of the change has been considered
  • Code follows company security practices and guidelines

@changeset-bot
Copy link

changeset-bot bot commented Feb 5, 2026

🦋 Changeset detected

Latest commit: de73733

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@redocly/respect-core Patch
@redocly/openapi-core Patch
@redocly/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.59% (🎯 78%) 6132 / 7802
🔵 Statements 78.03% (🎯 78%) 6338 / 8122
🔵 Functions 82.31% (🎯 82%) 1247 / 1515
🔵 Branches 70.31% (🎯 70%) 4187 / 5955
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/cli/src/commands/bundle.ts 87.8% 76.66% 100% 87.8% 118-122, 129-133, 151
packages/cli/src/commands/join.ts 69.1% 59.17% 71.42% 70.09% 139, 147-156, 178, 220, 234, 249, 273, 278, 289-293, 298-299, 305, 344, 350, 359-363, 427-428, 435, 446-449, 461, 473-484, 503, 554-557, 559-572, 616-646, 660, 661, 671-682, 690-739, 761-773, 780, 782-784, 786, 788-792
packages/cli/src/commands/lint.ts 76% 50% 50% 76% 79-81, 134-163
packages/core/src/format/format.ts 50.8% 41.5% 58.06% 50.56% 25, 67-68, 113, 117-143, 161, 165, 173-191, 200-305, 310, 323-329, 354-360, 367, 412-425, 439-440, 467
packages/respect-core/src/modules/flow-runner/get-test-description-from-file.ts 100% 76.47% 100% 100%
Generated in workflow #8504 for commit de73733 by the Vitest Coverage Report Action

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

CLI Version Mean Time ± Std Dev (s) Relative Performance (Lower is Faster)
cli-latest 3.511s ± 0.022s ▓ 1.00x
cli-next 3.500s ± 0.019s ▓ 1.00x (Fastest)

@tatomyr tatomyr requested a review from RomanHotsiy February 5, 2026 19:56
@tatomyr tatomyr marked this pull request as ready for review February 6, 2026 09:20
@tatomyr tatomyr requested review from a team as code owners February 6, 2026 09:20
@tatomyr tatomyr force-pushed the fix/put-bundle-problems-to-stderr branch from f734539 to de73733 Compare February 6, 2026 09:20
@tatomyr tatomyr merged commit e4dc78e into main Feb 6, 2026
43 checks passed
@tatomyr tatomyr deleted the fix/put-bundle-problems-to-stderr branch February 6, 2026 09:33
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.

4 participants