diff --git a/.mise/tasks/typecheck/backend b/.mise/tasks/typecheck/backend index bcd5f84..2537662 100755 --- a/.mise/tasks/typecheck/backend +++ b/.mise/tasks/typecheck/backend @@ -1,4 +1,9 @@ #!/usr/bin/env sh #MISE description="Typecheck the backend with tsc" +# The backend imports @jack/schemas, whose sources are generated and gitignored — +# without this, a fresh checkout fails with "Cannot find module '@jack/schemas/...'". +# `clients:generate` rather than `clients`: it skips the clean, so it's idempotent +# and cheap to repeat on every typecheck. +#MISE depends=["clients:generate"] bunx tsc --project apps/backend/tsconfig.json --noEmit --pretty false diff --git a/.mise/tasks/typecheck/workspace b/.mise/tasks/typecheck/workspace index 70c6a83..1eee24d 100755 --- a/.mise/tasks/typecheck/workspace +++ b/.mise/tasks/typecheck/workspace @@ -1,4 +1,8 @@ #!/usr/bin/env sh #MISE description="Typecheck non-Vue workspace files with tsc" +# packages/schemas re-exports the generated (gitignored) clients, so they have to +# exist before tsc runs over the workspace. `clients:generate` skips the clean that +# `clients` does, so repeating it on every typecheck is cheap. +#MISE depends=["clients:generate"] bunx tsc --project tsconfig.json --noEmit --pretty false