We should set up ts-bridge to generate and expose unambiguous .d.cts and .d.mts type declarations only.
Using .d.ts causes issues in downstream projects that have their moduleResolution option set to Node16 or NodeNext.
e.g.
error TS2307: Cannot find module '@metamask/providers' or its corresponding type declarations.
https://github.com/MetaMask/core/actions/runs/9668650800/job/26673339021?pr=3645
We should set up
ts-bridgeto generate and expose unambiguous.d.ctsand.d.mtstype declarations only.Using
.d.tscauses issues in downstream projects that have theirmoduleResolutionoption set toNode16orNodeNext.e.g.