Skip to content

feat: support direct and split TypeScript installs - #22

Merged
jan-kubica merged 2 commits into
mainfrom
feat/typescript-install-layouts
Aug 11, 2026
Merged

feat: support direct and split TypeScript installs#22
jan-kubica merged 2 commits into
mainfrom
feat/typescript-install-layouts

Conversation

@jan-kubica

@jan-kubica jan-kubica commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • publish discriminated direct and split-compatibility TypeScript layouts
  • accept the compatibility compiler API package while keeping TypeScript 7 as the typecheck compiler
  • document and regression-test both supported layouts

Validation

  • bun test
  • bun run typecheck
  • bun run lint
  • bun run build
  • bun run publint
  • bun run pack:dry-run
  • packed-package installs for both layouts
  • formatting check over every changed file
  • generated instruction sync check

CC on behalf of @jan-kubica

Summary by CodeRabbit

  • New Features

    • Added support for TypeScript 7 as the primary compiler and typecheck version.
    • Added a split compatibility installation option for projects that still require TypeScript 6 or compiler API compatibility.
    • Expanded supported TypeScript versions to include TypeScript 6.0.3 through TypeScript 7.
  • Documentation

    • Updated setup guidance with direct and split-compatibility installation layouts and usage recommendations.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@jan-kubica, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 6 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 44b1e6ea-ad89-4dca-82f6-6a29266303c5

📥 Commits

Reviewing files that changed from the base of the PR and between b07f390 and 2a8e81d.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • README.md
📝 Walkthrough

Walkthrough

The TypeScript configuration now supports direct TypeScript 7 and split TypeScript 6 compatibility installations. Package peer compatibility, policy tests, README guidance, and the release changeset reflect these layouts.

Changes

TypeScript installation layouts

Layer / File(s) Summary
Installation layout contract
packages/typescript-config/toolchain.json, packages/typescript-config/package.json
Defines direct TypeScript 7 and split TypeScript 6 compatibility layouts. Expands the TypeScript peer range to >=6.0.3 <8.
Policy validation and guidance
packages/oxlint-config/src/toolchain-policy.test.ts, README.md, .changeset/calm-tools-support.md
Tests both layouts and pre-TS7 consumer handling. Documents installation commands and records the package patch release.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the pull request's main change: support for direct and split TypeScript installation layouts.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/typescript-install-layouts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jan-kubica
jan-kubica marked this pull request as ready for review August 11, 2026 11:06

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b07f390eb8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/typescript-config/package.json

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/typescript-config/toolchain.json`:
- Around line 13-18: Adopt the official TypeScript 6/7 alias contract across all
affected surfaces: in packages/typescript-config/toolchain.json, use
npm:`@typescript/typescript6`@6.0.2 as the compatibility specifier, retain
typescript as the install name, reconcile packageAlias, and set the peer range
to >=6.0.2 <8; update packages/typescript-config/package.json accordingly.
Update both fixture cases in packages/oxlint-config/src/toolchain-policy.test.ts
and the README.md toolchain documentation to represent both aliases and the
tsc6/tsc binary roles.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: dd18330d-a0c5-4abc-b11e-8c42c01ac728

📥 Commits

Reviewing files that changed from the base of the PR and between 4190c25 and b07f390.

📒 Files selected for processing (5)
  • .changeset/calm-tools-support.md
  • README.md
  • packages/oxlint-config/src/toolchain-policy.test.ts
  • packages/typescript-config/package.json
  • packages/typescript-config/toolchain.json

Comment thread packages/typescript-config/toolchain.json
@jan-kubica
jan-kubica force-pushed the feat/typescript-install-layouts branch from d8f03e8 to 2a8e81d Compare August 11, 2026 12:00

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2a8e81db1c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md
Comment on lines +48 to +49
the blocker accepts TypeScript 7. The shared config's peer range accepts both
layouts; the compiler and typecheck command in each layout remain TypeScript 7.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Route the recommended split script to TypeScript 7

For consumers selecting split-compatibility, the later “Recommended scripts” block still sets typecheck to tsc --noEmit (README.md:132-139). Because both the compatibility typescript package and the @typescript/native alias expose a tsc binary, that unqualified shim does not guarantee the TypeScript 7 compiler and may silently run TypeScript 6, despite this section promising that typechecking remains on TypeScript 7. Show the split command from toolchain.json in the scripts guidance or explicitly qualify the existing example as direct-only.

AGENTS.md reference: AGENTS.md:L156-L156

Useful? React with 👍 / 👎.

@jan-kubica
jan-kubica merged commit f1de3f1 into main Aug 11, 2026
6 checks passed
@jan-kubica
jan-kubica deleted the feat/typescript-install-layouts branch August 11, 2026 12:04
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant