**TypeScript Version:** 3.7.2 <!-- Search terms you tried before logging this (so others can find this issue more easily) --> **Search Terms:** TS5056 composite JSON **Code** Minimal reproduction repo https://github.com/thovden/ts37-ts5056-composite Compilation fails with a `TS5056` when the basename of a Typescript and JSON file is the same in a composite project when using `resolveJsonModule` ```ts # Project compiles fine without composite tsc # Using a composite project does not... tsc -p tsconfig.composite.json error TS5056: Cannot write file '.../ts37-ts5056-composite/dist/test.d.ts' because it would be overwritten by multiple input files. ``` **Expected behavior:** Compiles fine in a composite project. **Actual behavior:** ```sh error TS5056: Cannot write file '.../ts37-ts5056-composite/dist/test.d.ts' because it would be overwritten by multiple input files. ``` **Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior --> **Related Issues:** <!-- Did you find other bugs that looked similar? --> @sheetalkamat has been working on related issues - e.g., https://github.com/microsoft/TypeScript/pull/34676 , https://github.com/microsoft/TypeScript/issues/33827