sanity 3.72.2-server-side-schemas.17 → 3.72.2-server-side-schemas.21
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-cjs/_internal.js +12 -11
- package/lib/_chunks-cjs/_internal.js.map +1 -1
- package/lib/_chunks-cjs/deployAction.js +8 -4
- package/lib/_chunks-cjs/deployAction.js.map +1 -1
- package/lib/_chunks-cjs/fetchSchemaAction.js +2 -2
- package/lib/_chunks-cjs/fetchSchemaAction.js.map +1 -1
- package/lib/_chunks-cjs/{storeManifestSchemasAction.js → storeSchemasAction.js} +10 -7
- package/lib/_chunks-cjs/storeSchemasAction.js.map +1 -0
- package/lib/_chunks-cjs/version.js +1 -1
- package/lib/_chunks-es/version.mjs +1 -1
- package/lib/_legacy/version.esm.js +1 -1
- package/package.json +10 -10
- package/src/_internal/cli/actions/deploy/deployAction.ts +9 -4
- package/src/_internal/cli/actions/schema/fetchSchemaAction.ts +3 -4
- package/src/_internal/cli/actions/{manifest/storeManifestSchemasAction.ts → schema/storeSchemasAction.ts} +23 -12
- package/src/_internal/cli/commands/deploy/deployCommand.ts +1 -1
- package/src/_internal/cli/commands/schema/fetchSchemaCommand.ts +2 -3
- package/src/_internal/cli/commands/schema/storeSchemaCommand.ts +11 -9
- package/lib/_chunks-cjs/storeManifestSchemasAction.js.map +0 -1
- package/lib/_chunks-cjs/storeSchemaAction.js +0 -7
- package/lib/_chunks-cjs/storeSchemaAction.js.map +0 -1
- package/src/_internal/cli/actions/schema/storeSchemaAction.ts +0 -17
@@ -1811,9 +1811,9 @@ const listAliasesHandler = async (args, context) => {
|
|
1811
1811
|
Options
|
1812
1812
|
--source-maps Enable source maps for built bundles (increases size of bundle)
|
1813
1813
|
--auto-updates / --no-auto-updates Enable/disable auto updates of studio versions
|
1814
|
-
--schema-path / path to schema folder if custom schema folder is used
|
1815
1814
|
--no-minify Skip minifying built JavaScript (speeds up build, increases size of bundle)
|
1816
1815
|
--no-build Don't build the studio prior to deploy, instead deploying the version currently in \`dist/\`
|
1816
|
+
--schema-required Require schema extraction and storing to be successful
|
1817
1817
|
-y, --yes Unattended mode, answers "yes" to any "yes/no" prompt and otherwise uses defaults
|
1818
1818
|
|
1819
1819
|
Examples
|
@@ -3389,12 +3389,11 @@ Examples
|
|
3389
3389
|
**Note**: This command is experimental and subject to change.
|
3390
3390
|
|
3391
3391
|
Options
|
3392
|
-
--
|
3393
|
-
--dataset The dataset to fetch the schema from
|
3392
|
+
--id id of the schema to fetch
|
3394
3393
|
|
3395
3394
|
Examples
|
3396
3395
|
# Fetch the stored schema for the workspace 'default' in the dataset 'sanity-test'
|
3397
|
-
sanity schema fetch --
|
3396
|
+
sanity schema fetch --id sanity.workspace.schema.default
|
3398
3397
|
`, fetchSchemaCommand = {
|
3399
3398
|
name: "fetch",
|
3400
3399
|
group: "schema",
|
@@ -3414,14 +3413,16 @@ var schemaGroup = {
|
|
3414
3413
|
const description$1 = "", helpText$4 = `
|
3415
3414
|
**Note**: This command is experimental and subject to change.
|
3416
3415
|
|
3417
|
-
|
3418
|
-
--workspace
|
3419
|
-
|
3420
|
-
--
|
3416
|
+
Options:
|
3417
|
+
--workspace The name of the workspace to fetch the stored schema for
|
3418
|
+
--path If you are not using the default static file path, you can specify it here.
|
3419
|
+
--custom-id you can specify a custom id for the schema. Useful if you want to store the schema in a different path than the default one.
|
3421
3420
|
|
3422
3421
|
Examples
|
3423
|
-
#
|
3424
|
-
sanity schema store
|
3422
|
+
# if no options are provided all workspace schemas will be stored
|
3423
|
+
sanity schema store
|
3424
|
+
# Store the schema for only the workspace 'default'
|
3425
|
+
sanity schema store --workspace default
|
3425
3426
|
`, storeSchemaCommand = {
|
3426
3427
|
name: "store",
|
3427
3428
|
group: "schema",
|
@@ -3429,7 +3430,7 @@ Examples
|
|
3429
3430
|
description: description$1,
|
3430
3431
|
helpText: helpText$4,
|
3431
3432
|
action: async (args, context) => (await Promise.resolve().then(function() {
|
3432
|
-
return require("./
|
3433
|
+
return require("./storeSchemasAction.js");
|
3433
3434
|
})).default(args, context)
|
3434
3435
|
}, description = "Validates all schema types specified in a workspace.", helpText$3 = `
|
3435
3436
|
Options
|