Skip to content

TSC

golar tsc forwards the remaining command-line arguments to Golar’s compiler mode.

Terminal window
npx golar tsc

Unlike the other CLI modes, tsc is compiler-first. It registers Golar code generation plugins and then passes the remaining arguments to the bundled TypeScript compiler.

Use this mode when you need compiler behavior such as declaration emit, build mode, or other direct compiler flags.

Type-check without emitting files:

Terminal window
golar tsc --noEmit

Emit declaration files only:

Terminal window
golar tsc --declaration --emitDeclarationOnly

Use build mode:

Terminal window
golar tsc --build --noEmit

For framework-specific compiler workflows such as Ember or Vue declaration emit, see the Ember and Vue language guides.

tsc still loads golar.config.ts so Golar can register the embedded-language plugins used by your project.

Use tsc when you already know which compiler flags you need and want behavior closer to a direct compiler invocation.

For most projects, the default mode is a better starting point.