@glint/ember-tsc
v1.5.0
Published
A CLI for performing typechecking on Glimmer templates
Downloads
283,017
Keywords
Readme
@glint/ember-tsc
This package contains core functionality to power template-aware typechecking on a glint project. Two binaries are provided:
glint-language-server- the Language Server that the VSCode (and other IDE) extension communicates withember-tsc(see below) - a thin wrapper around TypeScript'stscwhich provides support for .gts/.gjs files
ember-tsc
The ember-tsc CLI tool is a thin wrapper around tsc and hence all documentation / use cases / flags that apply to tsc also apply to ember-tsc.
Because ember-tsc is only used for type-checking purposes (or generating declaration files), and not for producing compiled JS output, the emitting of JS should always be disabled by providing either the --noEmit or --emitDeclarationOnly flags, depending on your use case.
Usage
General Usage:
ember-tsc --noEmit [--build] [--watch|-w] [--declaration|-d] [--emitDeclarationOnly] [--project path/to/tsconfig.json]Type-checking:
ember-tsc [--build] --noEmitType-checking in watch mode:
ember-tsc [--build] --noEmit --watchBuild declaration files:
ember-tsc --build --declaration --emitDeclarationOnlyBuild declaration files in watch mode:
ember-tsc --build --declaration --emitDeclarationOnly --watchPlease refer to tsc docs for other use cases and flags.
