compiler-performance

Optimize TypeScript compilation with project references and incremental builds.

Updated Jul 17, 2017
One-click install
npx skills add https://github.com/luyi985/lyi-bash --skill compiler-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compiler-performance
Source: https://github.com/luyi985/lyi-bash/tree/main/ai/skills/compiler-performance
Command: npx skills add https://github.com/luyi985/lyi-bash --skill compiler-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduces slow TypeScript compilation times in large codebases by guiding optimization strategies such as project references and incremental builds.

Core Features & Use Cases

  • Performance tuning guidance: Recommend tsconfig settings, incremental compilation, and proper project references to accelerate builds.
  • Scalable monorepo readiness: Helps optimize large codebases with multiple packages and interdependencies.
  • IDE responsiveness improvement: Reduces wait times during type-checking and navigation by enabling faster incremental builds.

Quick Start

Use incremental builds and project references to accelerate compilation in your TypeScript project.

Frequently Asked Questions about compiler-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I speed up TypeScript compilation in a large monorepo?

Speed up TypeScript compilation by configuring project references and enabling incremental builds. This approach optimizes type-checking and significantly reduces build times in large codebases with multiple interdependent packages.

What are the best tsconfig options to improve IDE responsiveness?

Improve IDE responsiveness by applying specific tsconfig optimization settings. Enabling incremental compilation and configuring project references reduces wait times during type-checking and navigation in large codebases.

How does incremental compilation work to reduce TypeScript build times?

Incremental compilation reduces TypeScript build times by caching compiler state between builds. This mechanism only re-checks and re-emits changed files, dramatically accelerating subsequent builds and improving IDE responsiveness.

When do I need to set up TypeScript project references?

Set up TypeScript project references when working in large monorepos with multiple packages and interdependencies. This configuration allows the compiler to build only the necessary parts, improving performance and IDE responsiveness.

Can I optimize TypeScript performance without changing my project structure?

You can optimize TypeScript performance through tsconfig settings and incremental builds. However, achieving maximum build performance in large codebases often requires configuring project references to properly manage interdependencies.