You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sanity CLI --watchPatterns doesn't seem to be working with wildcards #1139
If you find a security vulnerability, do NOT open an issue. Email security@sanity.io instead.
Describe the bug
I'm having trouble getting the watchPatterns option for schema extraction to work with wildcards. I want to run sanity schema extract --watch concurrently with my local dev server so the schema and types can update automatically as I work.
To Reproduce
I'm running an embedded sanity studio within a Next.js app. My sanity files are all located at src/sanity with the schema types in src/sanity/schemaTypes. My sanity.cli.ts file is located at the root of my project and looks something like this:
Activity