vk check
vk check [options]vk check runs the TypeScript compiler in no-emit mode against the project’s
tsconfig.json. It is the same gate vk deploy runs before touching AWS,
exposed as a standalone command for fast local and CI feedback — catching type
errors in routes, functions and vk.config.ts before a half-applied
CloudFormation deploy has to be unwound.
Options
Section titled “Options”| Option | Description | Default |
|---|---|---|
-p, --project <tsconfig> | Path to a specific tsconfig.json | nearest tsconfig.json in the project root |
Behaviour
Section titled “Behaviour”- Exit code mirrors
tsc:0on success,1on type errors. - When no
tsconfig.jsonis found and none was requested, the command prints a warning and exits0— nothing to check is not a failure. With an explicit--projectthat cannot be found it exits1. - Compiler output is printed verbatim under the spinner on failure.
Examples
Section titled “Examples”# Type-check the current projectvk check
# Use a dedicated build configvk check --project tsconfig.build.json# CI — fail fast before the deploy job- run: pnpm exec vk checkRelated
Section titled “Related”vk deploy— runs the same check automatically;--skip-typecheckbypasses it