trpc-openapi
trpc-openapi copied to clipboard
fix: update @trpc/server imports to use dist
TRPC ships with its src .ts files. There are sneaky imports in this lib that were accidentally targeting TRPC ts, and not the dist files, making it so the whole @trpc/server
lib was getting checked by the consumer's tsc build!
In particular, this surfaced for me because my project has verbatimModuleSyntax
set to true
, and trpc does not lean on that option.
Thanks for this nifty lib and let me know how else I can help
For anyone else coming across this, you can monkey patch with yarn until it gets shipped: https://yarnpkg.com/cli/patch
Thanks for the fix @mckelveygreg ! I got a similar issue here https://github.com/useVenice/venice/actions/runs/6516455413 and confirm monkey patching fixes it too
This also fixes problems encountered in https://github.com/jlalmes/trpc-openapi/issues/335
Thank you for this!
@jlalmes come on, this is as an easy and essential one to merge