Minimal repo for reproduction of ts5056
in Typescript 3.7.2 using
composite projects and resolveJsonModule
.
This happens when the basename of the Typescript file and JSON file
is the same - e.g., test.ts
and test.json
.
tsc
# Project compiles fine
# 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.