Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Can this package be used outside of the sanity repo #186

Answered by ricokahler
aidenBarrett96 asked this question in Q&A
Discussion options

You must be logged in to vote

yes it can! it doesn't have any dependencies on sanity actually. it's a just normal NPM package you can install anywhere

you do need to have your schema files available for code generator to read but if you wanted to lift those js schema files to some common repo (e.g. component lib repo) and import them in the studio code, that would result in the same codegen.

alternatively, you could codegen types from your studio repo and then publish some sort of package that you could import in your component library repo.

let me know if that makes sense

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ricokahler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants