Skip to content

chore(web): TypeScript 7 for typecheck and build, alongside TS 6 for tooling - #45

Merged
RyPope merged 1 commit into
mainfrom
deps/typescript-7
Dec 3, 2026
Merged

RyPope merged 1 commit into
mainfrom
deps/typescript-7

Conversation

@RyPope

@RyPope RyPope commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Moves the web app to TypeScript 7.0 and takes the rest of the web-dev group from #43, which can be closed once this merges.

TypeScript 7 alongside TypeScript 6

TypeScript 7.0 ships no compiler API, and typescript-eslint (8.74 accepts >=4.8.4 <6.1.0) and openapi-typescript both need it. This follows the side-by-side setup in the TypeScript 7.0 announcement:

  • typescript7: typescript@7.0.2. npm run typecheck and npm run build call its tsc.
  • typescript: @typescript/typescript6@6.0.2, Microsoft's compatibility package wrapping TypeScript 6.0.3. typescript-eslint and openapi-typescript resolve it as before.

Two details:

  • The TS 7 alias is not named @typescript/native, the name the announcement uses. typescript-eslint 8.74 declares an optional peer with that name for TypeScript 7.1 nightlies. With it, npm installed nested 7.1.0-dev nightly builds under typescript-eslint.
  • The scripts call node node_modules/typescript7/bin/tsc rather than a bare tsc. Both packages provide a tsc bin, and which one node_modules/.bin/tsc links to isn't reliable; locally it ended up as TypeScript 6. CONTRIBUTING.md notes this.

Once typescript-eslint supports TypeScript 7 (typescript-eslint/typescript-eslint#12518), the TS 6 alias can go.

Other updates

  • @types/react 19.3.3, @vitejs/plugin-react 6.3.0, eslint 10.16, eslint-plugin-react-refresh 0.5.8, playwright 1.65, prettier 3.10, typescript-eslint 8.74, vite 8.4.
  • cross-spawn 7.0.6 → 7.1.2 (dev-only, through eslint) for GHSA-ghv9-86vm-4v8m, a Windows-only command injection. npm audit is clean.

Supply-chain check

  • Every lockfile entry resolves from registry.npmjs.org.
  • No install scripts were added; fsevents remains the only package with one.
  • The TypeScript packages are published by Microsoft's npm accounts.
  • cross-spawn 7.1.2 has the same maintainer and dependencies as 7.0.6.
  • OSV reports no advisories for the new versions.

Testing

  • make lint passes.
  • make api-types leaves the generated types unchanged.
  • make test passes: backend 375, web 17, runner 62.
  • TypeScript 7 reports a deliberately added type error.
  • The Docker image builds with TypeScript 7 on Linux.
  • make smoke passes in all four languages.
  • The workspace and Progress pages load in the browser with no console errors.

…tooling

TypeScript 7.0 ships no compiler API, which typescript-eslint and
openapi-typescript need. Following Microsoft's side-by-side setup,
`typescript` is now @typescript/typescript6 (wrapping 6.0.3) and
`typescript7` is typescript@7.0.2; typecheck and build call TS 7's tsc
by path, since both packages provide a `tsc` bin.

The TS 7 alias is not named @typescript/native: typescript-eslint 8.74
declares an optional peer with that name for TS 7.1 nightlies, and npm
would install nested nightly builds to satisfy it.

Also takes the rest of the web-dev group from #43 (@types/react 19.3.3,
@vitejs/plugin-react 6.3.0, eslint 10.16, eslint-plugin-react-refresh
0.5.8, playwright 1.65, prettier 3.10, typescript-eslint 8.74, vite 8.4)
and cross-spawn 7.1.2 (GHSA-ghv9-86vm-4v8m, Windows-only, dev-only).
@RyPope
RyPope merged commit 4804748 into main Dec 3, 2026
5 checks passed
@RyPope
RyPope deleted the deps/typescript-7 branch December 3, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant