Repository navigation
chore: use an ES2015 target in tsconfig - #958
Merged
Merged
Conversation
TypeScript 6 deprecates target=ES5 (TS5107), which blocks the TypeScript 6 update (#955). tsc only type-checks index.d.ts with --noEmit, so the target has no effect on published output, and ES2015 works with both TypeScript 5.9 and 6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
TypeScript 6 deprecates
target: ES5, sopnpm tscfails on #955 (TypeScript 5.9 → 6.0) with:This PR switches the target to ES2015.
tschere only type-checksindex.d.tswith--noEmit, so the target doesn't affect anything that's published.It's a separate PR, rather than a commit on #955, so Dependabot can regenerate #955's lockfile cleanly on top of
master. A hand-resolved TypeScript lockfile conflict touches every package that hastypescriptas a peer.Test Plan
pnpm tscpasses with TypeScript 5.9.2, the current version.pnpm tscpasses with TypeScript 6.0.3. I checked this on chore(deps-dev): bump typescript from 5.9.2 to 6.0.3 #955's branch.🤖 Generated with Claude Code