In my TypeScript project, I am facing an issue with unnecessary merge conflicts caused by the generated .d.ts and .js files.
Since my project is quite large and only halfway converted from JS to TS, I cannot simply ignore all .js files using .gitignore. Additionally, there are some specific .js files that I will never convert to .ts.
Is there a way to conditionally ignore a file in this scenario?
The solution seems straightforward:
Ignore z.js if z.ts exists