நீங்கள் ஒரு TypeScript monorepo-வில் இரண்டு வரி பிழைத்திருத்தத்தை (bugfix) அனுப்பிவிட்டு, உங்கள் build pipeline பத்து நிமிடங்கள் type checking செய்வதை பார்த்திருந்தால், அந்தப் பிரச்சனையை நீங்கள் ஏற்கனவே புரிந்து கொண்டிருப்பீர்கள். அந்தத் தாமதத்திற்கு காரணம் bundling அல்ல. அது minification அல்ல. அது TypeScript உங்கள் declaration files-களை எழுத முயற்சிக்கும் தருணம். ஒரு .d.ts file-ஐ வெளியிடுவதற்கு (emit) முன்பாக, compiler முழுமையான type graph-ஐத் தீர்க்க வேண்டும். அது imports-களைத் தேடுகிறது, generics-களை மதிப்பீடு செய்கிறது, மற்றும் மூன்று dependency layers ஆழத்தில் இருக்கலாம் என்று கருதப்படும் return types-களை ஊகிக்கிறது (infer). நீங்கள் மாற்றிய அந்த ஒரு file மற்றொரு file-ஐத் தொடுகிறது, அது மூன்றாவது
If you have ever pushed a two line bugfix to a TypeScript monorepo and watched your build pipeline chew through ten minu
Translated for your language. Read the original.
AI-assisted, human-reviewed.
