What problem does it solve?
TypeScript compilation fails with error TS1261 ("Already included file name ... differs from file name ... only in casing") when the same file is referenced with different casing in imports versus the git index or include paths, especially on case-insensitive filesystems like macOS and Windows.
Core Features & Use Cases
- Diagnose casing conflicts: Identify both casing spellings reported in TS1261 diagnostics and determine which one matches existing imports.
- Two-step git rename workflow: Perform case-only renames using a temporary intermediate filename so git and the filesystem both register the change on case-insensitive filesystems.
- Verification checklist: Confirm the fix by re-running compilation and checking
git ls-files output for a single correctly-cased entry.
- Use Case: A repo tracks
fooBar.ts in git but code imports ./FooBar; use this Skill to rename the file via a two-step git mv and get a clean compile.
Quick Start
Fix the TS1261 casing error in my project by renaming the mismatched file with a two-step git mv and re-running the compile.