Skip to content

test(types): restore TypeScript 6.0 to CI matrix#2465

Merged
joshuaellis merged 2 commits into
nextfrom
worktree-2442
May 22, 2026
Merged

test(types): restore TypeScript 6.0 to CI matrix#2465
joshuaellis merged 2 commits into
nextfrom
worktree-2442

Conversation

@joshuaellis

Copy link
Copy Markdown
Member

Summary

Restores TypeScript 6.0 to the test-types CI matrix by removing two tsconfig options that TS 6 deprecated.

Why this works

Both options were dead config:

  • downlevelIteration — only affects emit for target < ES2015; this repo targets ES2020 with noEmit: true.
  • baseUrl: "./" — no paths mapping uses it and no source imports rely on baseUrl-rooted resolution. docs/tsconfig.json keeps its own baseUrl + paths for ~/* (separate scope, excluded from root).

Dropping them is cleaner than silencing via ignoreDeprecations, which would just defer the work to TS 7.

Verification

  • pnpm test:ts clean on TS 6.0.3.
  • pnpm test:ts clean on TS 5.7.2 (dev baseline).
  • CI matrix now: ['5.0', '5.4', '5.7', '5.9', '6.0'].

Closes #2442

Closes #2442

TS 6 deprecated `downlevelIteration` and `baseUrl`, causing
`pnpm test:ts` to fail on 6.0. Both options were dead config in this
repo: `downlevelIteration` only matters for ES5 targets (repo targets
ES2020 with noEmit) and `baseUrl` was unused (no path-based imports
relied on it; docs uses its own tsconfig). Dropping them is cleaner
than silencing via `ignoreDeprecations`.
@changeset-bot

changeset-bot Bot commented May 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9fb4aa5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel

vercel Bot commented May 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-spring Ready Ready Preview May 22, 2026 6:18am

Request Review

tsup's dts plugin hardcodes `baseUrl: compilerOptions.baseUrl || "."`,
re-injecting the deprecated option even after we removed it from
tsconfig.json. TS 6.0 then errors on its own injected value.

Conditionally adds `ignoreDeprecations: "6.0"` to tsconfig only for the
TS 6.0 matrix entry — earlier matrix versions reject "6.0" as an
invalid value (TS5103) so we can't set it unconditionally.

Tracks upstream: egoist/tsup#1388
@joshuaellis
joshuaellis merged commit 7ccf419 into next May 22, 2026
18 checks passed
@joshuaellis
joshuaellis deleted the worktree-2442 branch May 22, 2026 06:20
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.

test(types): restore TypeScript 6.0 to CI matrix

1 participant