Typecheck
Run the correct type checker for each framework in your project: automatically detected from your config.
#Usage
BASH
# Run type checkers for all frameworks
absolute typecheck
# With a custom config
absolute typecheck --config ./my-config.tsabsolute typecheck
$ absolute typecheck✓ Typecheck passed
#How It Works
The typecheck command reads your absolute.config.ts and runs the right checker for each framework directory:
Vue directories
vue-tsc (checks .ts, .tsx, and .vue files)Svelte directories
svelte-check (checks .svelte files, scoped to the Svelte directory)Everything else
tsc (when no Vue directory is configured)Since vue-tsc is a superset of tsc (it checks all .ts files plus .vue files), it replaces tsc when a Vue directory is present to avoid double-checking .ts files.
All checkers run in parallel for speed. Incremental compilation is used where supported, with build info cached in .absolutejs/.
#Configuration
No extra configuration is needed: the command automatically detects which frameworks are in use from your absolute.config.ts. Just make sure the relevant dev dependencies are installed:
vue-tscrequired if you have a Vue directory
svelte-checkrequired if you have a Svelte directory
typescriptalways required
TS
// absolute.config.ts : typecheck reads your framework directories
export default defineConfig({
reactDirectory: "./src/frontend/react",
svelteDirectory: "./src/frontend/svelte",
vueDirectory: "./src/frontend/vue",
angularDirectory: "./src/frontend/angular",
});
// package.json
{
"scripts": {
"typecheck": "absolute typecheck"
}
}