TypeScript 3 introduced an incremental option that speeds up builds.
To enable it, set the flag in tsconfig.json:
{
"compilerOptions": {
"incremental": true
}
}
Don’t forget to add .tsbuildinfo to .gitignore:
echo '.tsbuildinfo' >> .gitignore