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.
- package/lib/_chunks-es/_internal.js +8 -0
- package/lib/_chunks-es/_internal.js.map +1 -1
- package/lib/_chunks-es/extractAction.js +188 -226
- package/lib/_chunks-es/extractAction.js.map +1 -1
- package/lib/_chunks-es/helpers.js +1 -10
- package/lib/_chunks-es/helpers.js.map +1 -1
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/promiseWithResolvers.js +14 -0
- package/lib/_chunks-es/promiseWithResolvers.js.map +1 -0
- package/lib/_chunks-es/version.js +1 -1
- package/lib/_internal/cli/threads/extractSchema.cjs +13 -1
- package/lib/_internal/cli/threads/extractSchema.cjs.map +1 -1
- package/lib/_internal/cli/threads/extractSchema.d.cts +14 -0
- package/package.json +12 -12
|
@@ -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",
|