Loading topic
tsc run, shows which ones usually dominate, and shows how the two features in this tutorial, incremental and `isolatedDeclarations7 min readtsc from the command line, read and edit a tsconfig.json, and know the four stages of the compiler pipeline: parse, bind, check, and emit. You don't need a monorepo yet. The goal here is to get a trustworthy baseline before you change any build settings.6 min readtsc from the command line, edit a tsconfig.json, and read the phase timings that --extendedDiagnostics prints (parse, bind, check, emit). Here you will turn on the incremental option, see what it saves, and learn the errors that trip people up.6 min readtsconfig.json, run tsc -p . from a terminal, and know that the compiler has a parse, bind, check and emit pipeline. You should also have read the previous chapter, which turned on the incremental option. Here you look at what incremental writes to disk, ho6 min readtsconfig.json, run tsc from the command line, and know what a .d.ts file is. It explains why producing declaration files costs more than producing JavaScript. The rest of the tutorial's tools (composite projects, isolatedDeclarations, --noCheck) all resp6 min readtsconfig.json, know what a .d.ts file is, and have seen incremental and .tsbuildinfo from earlier chapters. A monorepo with npm workspaces helps but is not required.6 min readtsconfig.json, know that composite: true turns on incremental builds and project references, and have a monorepo or multi-package layout in mind. The previous chapter showed how to declare references. This one covers how tsc --build (build mode) uses them: w6 min readtsconfig.json, know what a .d.ts file contains, and have run tsc with declaration enabled. It covers what the isolatedDeclarations option promises, what it forbids, and where the guarantee stops. The next chapter covers writing the annotations it asks fo6 min readisolatedDeclarations guarantees. You should be comfortable with .d.ts files, with export syntax, and with reading tsc error output. The goal here is practical. You will learn which exported declarations n6 min readisolatedDeclarations and explicit annotations. It also assumes you can edit a tsconfig.json, run tsc from the command line, and know what a .d.ts file is. A monorepo helps but is not required.7 min readisolatedDeclarations, and tsc --build. You should be comfortable editing tsconfig.json and reading tsc output.6 min readisolatedDeclarations and --noCheck. You should know that isolatedDeclarations requires explicit annotations on exported declarations, and that tsc --noCheck skips type checking. You should also be comfortable with npm scripts and a basic mon6 min read.tsbuildinfo file, no dist folder, and none of the state that makes incremental fast on your laptop. Every run then pays for a full parse, bind, check, and emit. This chapter shows how to carry that state from one CI run to the next.7 min read