Repository navigation
chore(deps): update typescript to 7.0.2 - #457
Merged
Merged
Conversation
- tsconfig: moduleResolution "node" (node10) was removed in TS 7, use "bundler" - tsconfig.types: set rootDir explicitly, required by TS 7 - replace ts-node with tsx for test:unit, ts-node needs the JS compiler API which TypeScript 7 (native) no longer ships Supersedes #435 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011tSB1DTtshhws3G3f12vSt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011tSB1DTtshhws3G3f12vSt
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.
This PR contains:
SOMETHING ELSE: a dependency update (TypeScript
5.9.3to7.0.2) plus the config changes it needs. Supersedes #435, which is stale and red.Describe the problem you have without this PR
TypeScript 7 does not build this repo as it is configured today:
tsconfig.json: TS 7 removedmoduleResolution: "node"(node10), so this PR switches it to"bundler".config/tsconfig.types.json: TS 7 now requiresrootDirto be set explicitly, so this PR sets it to"../src". The output layout indist/typesstays the same.test:unit: TS 7 is the native (Go) compiler and ships no JS compiler API, sots-nodecrashes (Cannot read properties of undefined (reading 'fileExists')). This PR replacests-nodewithtsx@4.23.15, the same tool the main rxdb repo uses, and runs mocha with--import=tsx. The usage comment intest/unit/perf-rest-set.tsis updated to match.Verified locally after
scripts/build-rxdb.sh:npm run buildpassesnpm run check-typespasses with 0 errorsnpm run test:unit: 62 passingTodos
Add pubkey
@pubkey
🤖 Generated with Claude Code
https://claude.ai/code/session_011tSB1DTtshhws3G3f12vSt
Generated by Claude Code