Skip to content

Conversation

wutangpaul
Copy link

Description

Typegen from the frontend next application will currently not pick up any new sanity schema changes automatically (this drove me nuts for a couple of hours). This predev step will automatically run the schema extraction so typegen will not miss any new type definitions in /frontend.

What to review

predev step in package.json

Testing

Tested locally

@wutangpaul wutangpaul requested a review from a team as a code owner July 10, 2025 10:07
@vercel
Copy link

vercel bot commented Jul 10, 2025

@wutangpaul is attempting to deploy a commit to the Sanity Sandbox Team on Vercel.

A member of the Team first needs to authorize it.

@kenjonespizza kenjonespizza self-requested a review July 11, 2025 16:36
Copy link
Collaborator

@kenjonespizza kenjonespizza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @wutangpaul ! Thanks for the contribution! Yeah, this makes sense as something that should be added. How would you feel about adding these two scripts to the /frontend instead of the root? That way it runs even if youre just running the frontend as well as if you're running both the studio and frontend from the root.

Like I spun up in this draft PR #149 . Let me know what you think

@wutangpaul
Copy link
Author

@kenjonespizza Looks good dude

@kenjonespizza
Copy link
Collaborator

@wutangpaul Thanks for the motivation and inspiration here. Do you want to update your branch and I'll merge that (so you can keep contribution)? Otherwise I'll close this PR and merge in my alternate branch.

@wutangpaul
Copy link
Author

Go ahead and close this one and merge yours in please Ken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants