In the past we've [ran into bugs around this](https://github.com/dividab/tsconfig-paths/pull/95/files), so it might be better to outsource it. E.g. https://github.com/TypeStrong/tsconfig