shlogg · Early preview
Ramu Narasinga @karthik-m22

Analyzing Size Changes In Trpc Source Code Functions

analyzeSizeChange script in trpc source code analyzes package size changes, logging new modules & differences with GitHub messages.

In this article, we provide an overview of analyzeSizeChange script in trpc source code.
This file has the following functions:
1. func analyzeSizeChange
2. func onAnalysis
3. type GitHubLogType
4. type GitHubLogOptions
5. func logNewModule
6. func logDifference
7. func logGithubMessage
8. func difference
9. func resolveJsonPaths
10. func stripAnsiEscapes
11. func formatGithubOptions
12. func formatGithubMessage

The most important function here is analyzeSizeChange because it has a function named onAnalysis.

export default function analyzeSizeChange(packageDir: string) {
 let analyzePluginIt...