TSC
golar tsc forwards the remaining command-line arguments to Golar’s compiler mode.
npx golar tscpnpm golar tscyarn golar tscWhat It Does
Section titled “What It Does”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.
Examples
Section titled “Examples”Type-check without emitting files:
golar tsc --noEmitEmit declaration files only:
golar tsc --declaration --emitDeclarationOnlyUse build mode:
golar tsc --build --noEmitFor framework-specific compiler workflows such as Ember or Vue declaration emit, see the Ember and Vue language guides.
Configuration
Section titled “Configuration”tsc still loads golar.config.ts so Golar can register the embedded-language plugins used by your project.
When to Use It
Section titled “When to Use It”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.