Repository navigation
chore: drop tsconfig options TypeScript 7 removed - #1262
Merged
Merged
Conversation
TypeScript 7 rejects `baseUrl`, `moduleResolution: "node"` (node10), `noImplicitUseStrict` and `noStrictGenericChecks`, so #1239 fails `tsc` before checking any code. Remove them, and switch module resolution to `bundler`, which matches how Metro resolves this package. TypeScript 6+ also stops auto-including every `@types/*` package, so list the two the sources rely on: `jest` for the test globals and `node` for `global` in UIMenuView.android.tsx. All of this works on the current TypeScript 5.9 too. tsc passes, and `yarn prepare` emits byte-identical .d.ts files, so it can land ahead of the TypeScript 7 bump. 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.
Problem
#1239 (TypeScript 5.9 → 7.0) fails
tscbefore it checks any code:Once those are fixed, two more errors show up. TypeScript 6+ stops auto-including every
@types/*package, soit(jest) andglobal(src/UIMenuView.android.tsx) are no longer found.Change (
tsconfig.jsononly)baseUrl.pathsalready resolves relative to the tsconfig without it.moduleResolutionfromnodetobundler, which matches how Metro resolves the package.noImplicitUseStrictandnoStrictGenericChecks. Both were set to their defaultfalse, so this changes nothing."types": ["jest", "node"]: the two@typespackages the sources rely on, which TypeScript 5.9 used to include implicitly.Verification (local)
yarn typescriptyarn prepare(bob)lib/typescript.d.ts files are byte-identical to the output with the old tsconfigSo this can land first. After it merges,
@dependabot rebaseon #1239 should turn itstsccheck green.🤖 Generated with Claude Code