Repository navigation
chore(tsconfig): adjust both packages for TS 6 conventions - #1147
Merged
Merged
Conversation
Two small tsconfig.json tweaks now that we're on TS 6 (PR #1146): packages/mcp-server/tsconfig.json: target/lib ES2022 -> ES2024 Node 24 is now pinned via .nvmrc (#1144), so we can take advantage of ES2024 built-ins (Object.groupBy, Promise.withResolvers, etc.) without runtime-availability concerns. Deliberately stopping short of ES2025 to avoid tying us to APIs that need the very latest Node minor; revisit later if a concrete use surfaces. packages/vscode/tsconfig.json: - Add explicit moduleResolution: node10 + ignoreDeprecations: "6.0" - Add explicit types: ["node"] TS 6 deprecates the implicit `node10` resolution. We can't migrate to nodenext/bundler yet because @vscode/vsce (the extension publisher tooling) hasn't sanctioned that path for VS Code extensions. Setting the resolution explicitly + suppressing the deprecation keeps us building cleanly through the TS 6 line; a comment in-line documents when to revisit (TS 7 adoption). TS 6 also changes `types` default from [<all>] to []. Locking it to ["node"] makes the previously-implicit auto-include explicit so a future ignoreDeprecations drop doesn't silently lose types. Skipped (not enough payoff in our code): - Subpath imports (`#/`): only 8 sibling files in mcp-server, no deep `../../` patterns. - Map.getOrInsert / RegExp.escape / Temporal: no natural insertion points found; would be a speculative refactor. - --stableTypeOrdering flag: TS 7 prep with ~25% type-check overhead; not worth it until we're actively migrating. Verified: - mcp-server: tsc clean; 166/166 vitest tests pass - vscode: tsc clean; npm run package produces vsix without errors Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts TypeScript configuration in the repo’s two Node/TS packages to align with newer TypeScript (TS 6) conventions and the repo’s Node 24 baseline.
Changes:
packages/mcp-server: bumptarget/libfromES2022toES2024.packages/vscode: makemoduleResolutionexplicit (node10), addignoreDeprecations: "6.0", and pintypesto["node"].
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
packages/vscode/tsconfig.json |
Makes TS6-related resolution/deprecation behavior explicit and pins included ambient types. |
packages/mcp-server/tsconfig.json |
Raises emitted JS / lib typings baseline to ES2024 for the Node 24 runtime. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
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.
Summary
Two small tsconfig.json tweaks now that we're on TS 6 (PR #1146):
`packages/mcp-server`
`target`/`lib` `ES2022` → `ES2024`. Node 24 is pinned via `.nvmrc` (#1144), so we can use ES2024 built-ins (`Object.groupBy`, `Promise.withResolvers`, etc.) without runtime-availability concerns. Deliberately stopping short of ES2025 to avoid tying us to APIs that need the very latest Node minor.
`packages/vscode`
Skipped (no payoff in our code)
The flashy TS 6 features don't have natural insertion points:
Test plan
🤖 Generated with Claude Code