build!: bump TypeScript to v7 - #18
Merged
Merged
Conversation
TS 7 is the native compiler and drops the JS compiler API that bun-sqlgen-core builds on (ts.factory, printer, program, checker). Source that API from the side-by-side @typescript/typescript6 package instead, and type-check the repo with the native TS 7 tsc. - catalog: typescript ^7.0.2 + @typescript/typescript6 ^6.0.2 - @typescript/typescript6 ships as a normal dependency of the published package (previously typescript was a peer dep) - base tsconfig sets types: ["bun"] — TS 7 no longer auto-discovers ambient @types; declare @types/bun where it was implicit BREAKING CHANGE: drops the typescript peer dependency; the published package now targets the TypeScript 7 toolchain. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ilbertt
added a commit
that referenced
this pull request
Jul 15, 2026
Fix after #18, copied from ilbertt/bun-monorepo-starter@8937a8f.
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.
TypeScript 7 is the native (Go) compiler and no longer ships the JS compiler API that
bun-sqlgen-corebuilds on (ts.factory, printer, program, checker). This bumps the toolchain to TS 7 for type-checking and sources the compiler API from the side-by-side@typescript/typescript6package.typescript→^7.0.2; add@typescript/typescript6^6.0.2for the compiler API (imported bybun-sqlgen-core)@typescript/typescript6ships as a normal dependency of@ilbertt/bun-sqlgen(previouslytypescriptwas a peer dep) — decoupled from the consumer's TS versiontypes: ["bun"]— TS 7 no longer auto-discovers ambient@types; declared@types/bunwhere it was implicitBREAKING CHANGE: drops the
typescriptpeer dependency; the published package now targets the TypeScript 7 toolchain.Verified
bun check:all(8/8, including the examples' codegen--check) andbun run build(including native TS 7 declaration emit) pass — generated output is byte-identical.🤖 Generated with Claude Code