We've struggled a lot with ESM/CJS incompatibilities and it's not a settled question still.
The scope of this task is to evaluate the tshy tool.
I've recently seen a new-ish tool that I haven't tried before that could help us with making CJS and ESM work together more seamlessly by refactoring the TS compilation output directory structure (or at least that's what it sounds like based on the first link)
Description
We've struggled a lot with ESM/CJS incompatibilities and it's not a settled question still.
The scope of this task is to evaluate the tshy tool.
I've recently seen a new-ish tool that I haven't tried before that could help us with making CJS and ESM work together more seamlessly by refactoring the TS compilation output directory structure (or at least that's what it sounds like based on the first link)
Source 1: https://colinhacks.com/essays/live-types-typescript-monorepo Source 2: https://github.com/isaacs/tshy
Acceptance Criteria
yarn watch-tsc
)cc: @outSH