Skip to content

Commit f89f884

Browse files
build(ui): upgrade TypeScript 7 and align Node 26 toolchain (#3379)
Read the CI Node version from UI engines and match Docker and Node types.\nDocument the native compiler workflow without changing UI dependencies. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 5e39ec8 commit f89f884

5 files changed

Lines changed: 393 additions & 21 deletions

File tree

‎.github/actions/build-ui/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
if: steps.cache-ui.outputs.cache-hit != 'true'
2121
uses: actions/setup-node@v7
2222
with:
23-
node-version: "22"
23+
node-version-file: ui/package.json
2424
cache: npm
2525
cache-dependency-path: ui/package-lock.json
2626

‎.github/workflows/code-scanning.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
if: matrix.language == 'javascript'
8383
uses: actions/setup-node@v7
8484
with:
85-
node-version: "20"
85+
node-version-file: ui/package.json
8686
cache: "npm"
8787
cache-dependency-path: ui/package-lock.json
8888

‎CONTRIBUTING.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ These are one time installations required to be able to test your changes locall
2929
1. Install Go 1.26.8 or later [through download](https://go.dev/doc/install) | [through Homebrew](https://formulae.brew.sh/formula/go)
3030
2. [Install golangci-lint v2.14.0](https://golangci-lint.run/welcome/install/#local-installation), or let `script/lint` install the repository-pinned version. The pinned version supports both Go 1.26 and Go 1.27.
3131

32+
### UI development
33+
34+
Use Node.js 26.x for the UI in `ui/`. This matches the Docker UI build stage
35+
and `@types/node`; GitHub Actions reads the Node version from `ui/package.json`.
36+
Node 26 is a supported Current release, with LTS scheduled for October 2026.
37+
38+
From `ui/`, run `npm ci`, `npm run typecheck`, and `npm run build`.
39+
Type checking uses the native TypeScript 7 compiler through `tsc`; Vite handles
40+
transpilation and bundling separately. No TypeScript compiler API integration,
41+
typescript-eslint, or ts-node is required.
42+
3243
## Submitting a pull request
3344

3445
1. [Fork][fork] and clone the repository

0 commit comments

Comments
 (0)