-
Notifications
You must be signed in to change notification settings - Fork 5
How to publish types? #155
Comments
A (temporary) solution is install That issue has it added to the 4.8 milestone, but the ticket is still open. It's not done, likely needs to be reprioritized on the Typescript side. I'm not convinced this is the right issue, either. |
Even with |
I'm not sure why I suggested that, considering we're not even doing that in our own projects. This will need more investigation. If you're able to make a PR with a solution, that would be amazing! |
Is there a way to publish the types from the generated schemas? I tried to compile, I get a variation of the following error:
I found some suggestions like setting
"preserveSymlinks": true
, but that causes the emitted types files to beany
s...The issue appears to have been added to the Typescript 4.8 milestone... but 4.8 has already been published.
Hoping perhaps that I am missing something silly? I really like this library's pattern, so if we can't get this to work, then I think i'll make a monorepo so I'll have access to the types in our frontend 🤷
tsconfig.json
as suggested by sanity docstsconfig.schema.json
used for actually buildingThe text was updated successfully, but these errors were encountered: