sanity 5.4.0 → 5.5.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3593,10 +3593,18 @@ Options
3593
3593
  --path Optional path to specify destination of the schema file
3594
3594
  --enforce-required-fields Makes the schema generated treat fields marked as required as non-optional. Defaults to false.
3595
3595
  --format=[groq-type-nodes] Format the schema as GROQ type nodes. Only available format at the moment.
3596
+ --watch Enable watch mode to re-extract schema on file changes
3597
+ --watch-patterns <glob> Additional glob pattern(s) to watch (can be specified multiple times)
3596
3598
 
3597
3599
  Examples
3598
3600
  # Extracts schema types in a Sanity project with more than one workspace
3599
3601
  sanity schema extract --workspace default
3602
+
3603
+ # Watch mode - re-extract on changes
3604
+ sanity schema extract --watch
3605
+
3606
+ # Watch with custom glob patterns
3607
+ sanity schema extract --watch --watch-patterns "lib/**/*.ts"
3600
3608
  `, extractSchemaCommand = {
3601
3609
  name: "extract",
3602
3610
  group: "schema",