Repository navigation
chore(web): TypeScript 7 for typecheck and build, alongside TS 6 for tooling - #45
Merged
Merged
Conversation
…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).
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.
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 typecheckandnpm run buildcall itstsc.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:
@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 nested7.1.0-devnightly builds under typescript-eslint.node node_modules/typescript7/bin/tscrather than a baretsc. Both packages provide atscbin, and which onenode_modules/.bin/tsclinks 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
npm auditis clean.Supply-chain check
fseventsremains the only package with one.Testing
make lintpasses.make api-typesleaves the generated types unchanged.make testpasses: backend 375, web 17, runner 62.make smokepasses in all four languages.