Skip to content

React renderer's build script does not perform type checking #1283

@andrewkolos

Description

@andrewkolos

The React renderer's build script uses tsup, which wraps esbuild for speed but does not typecheck. A separate typecheck script exists but was not wired into build or CI, so type errors could(and did) land on main unnoticed.

For example, in this bit of testing code we see imports to node utilities, but the tsconfig of the project doesn't include the typings for node:

import fs from 'fs';
import path from 'path';

The result is that running npm run typecheck fails with errors. This surprised me because this was code already checked in upstream, which signaled to me that the build/run commands weren't running typechecking.

Metadata

Metadata

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions