Skip to content

Title: tsconfig.tsbuildinfo (TypeScript incremental build cache) is tracked in git — should be gitignored #1959

Description

@prince-pokharna

Description

The repository's root file listing includes tsconfig.tsbuildinfo as a tracked file. This file is TypeScript's incremental compilation cache, automatically generated by tsc (or any tool invoking it, including Docusaurus's build pipeline) whenever "incremental": true or "composite": true is set in tsconfig.json. It is explicitly designed to be a local, machine-specific build artifact — the official TypeScript documentation and virtually every community .gitignore template for TS projects exclude it, because committing it provides zero benefit and creates noisy diffs every time any contributor runs a local build (the file's content churns on every compilation).

Impact

Every contributor who runs npm run build or even just has the TS language server active locally will find this file modified in their working tree, creating confusing "changes" that have nothing to do with their actual work — a common source of accidental unrelated diffs in PRs from newer contributors.
With 1,708 commits and heavy ongoing GSSoC contributor activity, this kind of noise compounds quickly across many simultaneous forks/branches.

Proposed Solution

Add *.tsbuildinfo to .gitignore (a single, standard line).
Remove the tracked file from git history going forward: git rm --cached tsconfig.tsbuildinfo.
Commit as an isolated "chore: stop tracking TypeScript build cache" commit.

Acceptance Criteria

tsconfig.tsbuildinfo no longer tracked in git
.gitignore updated with *.tsbuildinfo
Fresh npm install && npm run build regenerates the file locally without git flagging it as a change

Metadata

Metadata

Assignees

No one assigned

    Labels

    level 110 pointsrecodethis is label for leaderboard

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions