chore(web): upgrade frontend to TypeScript 6 - #868
Draft
lc6464 wants to merge 1 commit into
Draft
Conversation
There was a problem hiding this comment.
Pull request overview
This PR upgrades the web/ frontend toolchain to TypeScript 6.0.3, adjusts TypeScript project configuration to remove the deprecated baseUrl setting while keeping the existing @/* -> ./src/* path mapping, and pins the Vite config TS build target for the Node-side config file.
Changes:
- Bump
typescriptfrom^5.9.3to^6.0.3and updatepnpm-lock.yamlaccordingly. - Remove
compilerOptions.baseUrlfromweb/tsconfig.jsonwhile retainingcompilerOptions.paths. - Set
compilerOptions.targettoES2023inweb/tsconfig.node.json(forvite.config.ts).
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| web/tsconfig.node.json | Sets TS target to ES2023 for the Node/Vite config compilation context. |
| web/tsconfig.json | Removes deprecated baseUrl while keeping the @/* path mapping. |
| web/pnpm-lock.yaml | Updates lockfile to reflect TypeScript 6.0.3 (and peer wiring). |
| web/package.json | Updates the TypeScript devDependency to ^6.0.3. |
Files not reviewed (1)
- web/pnpm-lock.yaml: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
lc6464
marked this pull request as draft
August 10, 2026 03:53
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
This PR picks and adapts the TypeScript 6 upgrade from sipeed/NanoKVM-Pro#138 for NanoKVM.
It upgrades the web frontend from TypeScript 5.9.3 to the latest TypeScript 6 release, 6.0.3, and migrates the project configuration away from the deprecated
baseUrloption. NanoKVM already uses Vite 8's nativeresolve.tsconfigPathssupport from #853, so the NanoKVM-Pro PR's Vite alias replacement is not needed here.Changes
baseUrlwith@andrewbranch/ts5to6 --fixBaseUrl; the tool confirmed that no project relies onbaseUrlfor module resolution and preserved the existing@/* -> ./src/*mapping.Verification
pnpm install --frozen-lockfilewith pnpm 11.20.0, including the repository's supply-chain policy check.pnpm exec tsc --noEmit --stableTypeOrdering.pnpm buildwith Vite 8.2.0 (5,339 modules transformed).pnpm lint(0 errors; 15 pre-existing React Hook warnings remain).git diff --check.