Skip to content

chore: typecheck scripts/ and the root config files #161

Description

@Artmann

yarn typecheck runs two projects and neither one covers scripts/ or the .ts files at the repository root:

  • tsconfig.backend.jsoninclude: ["src/glue/**/*", "src/server/**/*"]
  • tsconfig.renderer.jsoninclude: ["src", "vitest.setup.ts"]

So scripts/seed.ts, scripts/mysql-seed.ts, forge.config.ts, vite.*.config.ts and vitest.config.ts get no type checking in CI at all. A type error in any of them passes every gate and is found by running the thing.

This came up three times in a row while working on #73, #105 and #107 — each PR notes it and declines to fix it, because a third of a fix in one branch conflicts with the other two.

What it needs

A third project (tsconfig.tooling.json) covering scripts/**/* and the root configs, added to the typecheck script. It will need its own compilerOptions — these files are Node-side and some are ESM config modules, so they do not fit either existing project's settings.

Expect real errors on the first run. scripts/seed.ts in particular has never been checked.

Do this after

PRs for #73, #105 and #107 all touch this area. Land those first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions