Skip to content

chore: ignore tsbuildinfo files - #2225

Merged
felladrin merged 1 commit into
mainfrom
chore/ignore-tsbuildinfo
Jul 27, 2026
Merged

chore: ignore tsbuildinfo files#2225
felladrin merged 1 commit into
mainfrom
chore/ignore-tsbuildinfo

Conversation

@felladrin

Copy link
Copy Markdown
Owner

Description

Currently, every npm run lint leaves tsconfig.node.tsbuildinfo behind as an untracked file, so git status is dirty after a routine lint run and the artifact is one careless git add away from being committed.

It comes from tsc -p tsconfig.node.json: that config sets "composite": true, which keeps incremental build output even under --noEmit. Ignoring the pattern is enough, and *.tsbuildinfo also covers any other config that starts emitting one later.

Nothing matching the pattern is tracked today, so no git rm --cached is needed.

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Other (refactor, build, chore)

Checklist

  • npm run lint passes
  • Tests pass (npm run test), with tests added where it made sense

How to test

  1. rm -f tsconfig.node.tsbuildinfo && npm run lint
  2. git status should be clean, and ls tsconfig.node.tsbuildinfo should still show the file (ignored, not gone).
  3. git check-ignore -v tsconfig.node.tsbuildinfo should point at the new line.

`tsc -p tsconfig.node.json` writes tsconfig.node.tsbuildinfo on every
`npm run lint`, because that config sets "composite": true, which keeps
incremental output even under --noEmit. The file was showing up as untracked
after each local run.
@felladrin
felladrin marked this pull request as ready for review July 27, 2026 13:57
@felladrin
felladrin merged commit 72c14c0 into main Jul 27, 2026
6 of 7 checks passed
@felladrin
felladrin deleted the chore/ignore-tsbuildinfo branch July 27, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant