TS-2297: fix out of tree build for TSConfig