Skip to content

buildCompileTypeScript

Compiles the TypeScript code.

The general tsc pass runs with skipLibCheck: true (configured in tsconfig.json) so it does not fail on broken upstream .d.ts files we do not control. Afterwards, validateProjectTypes re-runs the type-check in-memory with skipLibCheck: false, reporting only diagnostics from the files we own, so the declarations we author are still fully validated.

Import:

import { buildCompileTypeScript } from 'obsidian-dev-utils/script-utils/build';

Signature:

function buildCompileTypeScript(): Promise<void>

Returns: Promise<void> — A Promise that resolves when the code compiles successfully.