@sanity/cli 7.2.2 → 7.3.0
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/bin/run.js +3 -12
- package/dist/actions/auth/authServer.js +37 -20
- package/dist/actions/auth/authServer.js.map +1 -1
- package/dist/actions/backup/assertDatasetExist.js +3 -3
- package/dist/actions/backup/assertDatasetExist.js.map +1 -1
- package/dist/actions/build/buildApp.js +15 -5
- package/dist/actions/build/buildApp.js.map +1 -1
- package/dist/actions/build/buildStaticFiles.js +57 -5
- package/dist/actions/build/buildStaticFiles.js.map +1 -1
- package/dist/actions/build/buildStudio.js +13 -5
- package/dist/actions/build/buildStudio.js.map +1 -1
- package/dist/actions/build/handlePrereleaseVersions.js +2 -2
- package/dist/actions/build/handlePrereleaseVersions.js.map +1 -1
- package/dist/actions/dataset/resolveDataset.js +2 -2
- package/dist/actions/dataset/resolveDataset.js.map +1 -1
- package/dist/actions/deploy/deployApp.js +43 -5
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +14 -2
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/deploy/viewDeployment.js +32 -0
- package/dist/actions/deploy/viewDeployment.js.map +1 -0
- package/dist/actions/dev/devAction.js +219 -4
- package/dist/actions/dev/devAction.js.map +1 -1
- package/dist/actions/dev/registration/deriveInterfaces.js +46 -0
- package/dist/actions/dev/registration/deriveInterfaces.js.map +1 -0
- package/dist/actions/dev/registration/extractDevServerManifest.js +30 -0
- package/dist/actions/dev/registration/extractDevServerManifest.js.map +1 -0
- package/dist/actions/dev/registration/interfaceSetId.js +41 -0
- package/dist/actions/dev/registration/interfaceSetId.js.map +1 -0
- package/dist/actions/dev/registration/startDevManifestWatcher.js +104 -0
- package/dist/actions/dev/registration/startDevManifestWatcher.js.map +1 -0
- package/dist/actions/dev/registration/startDevServerRegistration.js +121 -0
- package/dist/actions/dev/registration/startDevServerRegistration.js.map +1 -0
- package/dist/actions/dev/servers/getDashboardAppUrl.js.map +1 -0
- package/dist/actions/dev/servers/getDevServerConfig.js +45 -0
- package/dist/actions/dev/servers/getDevServerConfig.js.map +1 -0
- package/dist/actions/dev/servers/startAppDevServer.js +78 -0
- package/dist/actions/dev/servers/startAppDevServer.js.map +1 -0
- package/dist/actions/dev/{startStudioDevServer.js → servers/startStudioDevServer.js} +20 -16
- package/dist/actions/dev/servers/startStudioDevServer.js.map +1 -0
- package/dist/actions/dev/types.js +7 -1
- package/dist/actions/dev/types.js.map +1 -1
- package/dist/actions/dev/workbench/startWorkbenchDevServer.js +276 -0
- package/dist/actions/dev/workbench/startWorkbenchDevServer.js.map +1 -0
- package/dist/actions/dev/workbench/writeWorkbenchRuntime.js +66 -0
- package/dist/actions/dev/workbench/writeWorkbenchRuntime.js.map +1 -0
- package/dist/actions/init/bootstrapLocalTemplate.js +15 -3
- package/dist/actions/init/bootstrapLocalTemplate.js.map +1 -1
- package/dist/actions/init/bootstrapTemplate.js +3 -2
- package/dist/actions/init/bootstrapTemplate.js.map +1 -1
- package/dist/actions/init/createAppCliConfig.js +5 -2
- package/dist/actions/init/createAppCliConfig.js.map +1 -1
- package/dist/actions/init/createCliConfig.js +5 -3
- package/dist/actions/init/createCliConfig.js.map +1 -1
- package/dist/actions/init/createStudioConfig.js.map +1 -1
- package/dist/actions/init/initAction.js +11 -4
- package/dist/actions/init/initAction.js.map +1 -1
- package/dist/actions/init/initApp.js +2 -1
- package/dist/actions/init/initApp.js.map +1 -1
- package/dist/actions/init/initStudio.js +2 -1
- package/dist/actions/init/initStudio.js.map +1 -1
- package/dist/actions/init/scaffoldTemplate.js +3 -2
- package/dist/actions/init/scaffoldTemplate.js.map +1 -1
- package/dist/actions/init/templates/pageBuilder.js +1 -1
- package/dist/actions/init/templates/pageBuilder.js.map +1 -1
- package/dist/actions/init/types.js +1 -0
- package/dist/actions/init/types.js.map +1 -1
- package/dist/actions/manifest/{extractAppManifest.js → extractCoreAppManifest.js} +30 -11
- package/dist/actions/manifest/extractCoreAppManifest.js.map +1 -0
- package/dist/actions/manifest/extractManifest.js +7 -7
- package/dist/actions/manifest/extractManifest.js.map +1 -1
- package/dist/actions/manifest/iconResolver.js +2 -3
- package/dist/actions/manifest/iconResolver.js.map +1 -1
- package/dist/actions/manifest/sanitizeIcon.js +13 -0
- package/dist/actions/manifest/sanitizeIcon.js.map +1 -0
- package/dist/actions/manifest/types.js +4 -9
- package/dist/actions/manifest/types.js.map +1 -1
- package/dist/actions/manifest/writeManifestFile.js +1 -1
- package/dist/actions/manifest/writeManifestFile.js.map +1 -1
- package/dist/actions/mcp/editorConfigs.js +26 -2
- package/dist/actions/mcp/editorConfigs.js.map +1 -1
- package/dist/actions/mcp/setupMCP.js +24 -25
- package/dist/actions/mcp/setupMCP.js.map +1 -1
- package/dist/actions/mcp/types.js.map +1 -1
- package/dist/actions/skills/configureSkills.js +49 -0
- package/dist/actions/skills/configureSkills.js.map +1 -0
- package/dist/actions/skills/readSkillState.js +40 -5
- package/dist/actions/skills/readSkillState.js.map +1 -1
- package/dist/actions/skills/setupSkills.js +47 -6
- package/dist/actions/skills/setupSkills.js.map +1 -1
- package/dist/actions/skills/skillCandidates.js +40 -0
- package/dist/actions/skills/skillCandidates.js.map +1 -0
- package/dist/actions/telemetry/telemetryDisclosure.js +2 -3
- package/dist/actions/telemetry/telemetryDisclosure.js.map +1 -1
- package/dist/actions/tokens/validateRole.js +3 -3
- package/dist/actions/tokens/validateRole.js.map +1 -1
- package/dist/commands/backups/disable.js +1 -1
- package/dist/commands/backups/disable.js.map +1 -1
- package/dist/commands/backups/download.js +1 -1
- package/dist/commands/backups/download.js.map +1 -1
- package/dist/commands/backups/enable.js +1 -1
- package/dist/commands/backups/enable.js.map +1 -1
- package/dist/commands/backups/list.js +1 -1
- package/dist/commands/backups/list.js.map +1 -1
- package/dist/commands/datasets/embeddings/disable.js +1 -0
- package/dist/commands/datasets/embeddings/disable.js.map +1 -1
- package/dist/commands/datasets/embeddings/enable.js +1 -0
- package/dist/commands/datasets/embeddings/enable.js.map +1 -1
- package/dist/commands/datasets/embeddings/status.js +1 -0
- package/dist/commands/datasets/embeddings/status.js.map +1 -1
- package/dist/commands/dev.js +11 -1
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/init.js +7 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/manifest/extract.js +7 -2
- package/dist/commands/manifest/extract.js.map +1 -1
- package/dist/commands/mcp/configure.js +1 -0
- package/dist/commands/mcp/configure.js.map +1 -1
- package/dist/commands/skills/install.js +40 -0
- package/dist/commands/skills/install.js.map +1 -0
- package/dist/commands/tokens/add.js +1 -1
- package/dist/commands/tokens/add.js.map +1 -1
- package/dist/exports/index.d.ts +6 -0
- package/dist/exports/index.js +8 -0
- package/dist/exports/index.js.map +1 -1
- package/dist/exports/runtime.d.ts +41 -0
- package/dist/exports/runtime.js +13 -0
- package/dist/exports/runtime.js.map +1 -0
- package/dist/hooks/prerun/setupTelemetry.js +3 -1
- package/dist/hooks/prerun/setupTelemetry.js.map +1 -1
- package/dist/server/devServer.js +8 -3
- package/dist/server/devServer.js.map +1 -1
- package/dist/services/documents.js +0 -1
- package/dist/services/documents.js.map +1 -1
- package/dist/telemetry/skills.telemetry.js +8 -0
- package/dist/telemetry/skills.telemetry.js.map +1 -0
- package/dist/util/compareDependencyVersions.js +1 -1
- package/dist/util/compareDependencyVersions.js.map +1 -1
- package/dist/util/determineIsApp.js +12 -1
- package/dist/util/determineIsApp.js.map +1 -1
- package/dist/util/getSharedServerConfig.js +2 -1
- package/dist/util/getSharedServerConfig.js.map +1 -1
- package/dist/util/resolveReactStrictMode.js +11 -0
- package/dist/util/resolveReactStrictMode.js.map +1 -0
- package/oclif.config.js +2 -1
- package/oclif.manifest.json +119 -86
- package/package.json +27 -18
- package/templates/page-builder/schemaTypes/index.js +1 -1
- package/dist/actions/build/checkRequiredDependencies.js +0 -124
- package/dist/actions/build/checkRequiredDependencies.js.map +0 -1
- package/dist/actions/build/getAutoUpdatesImportMap.js +0 -66
- package/dist/actions/build/getAutoUpdatesImportMap.js.map +0 -1
- package/dist/actions/dev/getDashboardAppUrl.js.map +0 -1
- package/dist/actions/dev/getDevServerConfig.js +0 -32
- package/dist/actions/dev/getDevServerConfig.js.map +0 -1
- package/dist/actions/dev/startAppDevServer.js +0 -59
- package/dist/actions/dev/startAppDevServer.js.map +0 -1
- package/dist/actions/dev/startStudioDevServer.js.map +0 -1
- package/dist/actions/manifest/extractAppManifest.js.map +0 -1
- /package/dist/actions/dev/{getDashboardAppUrl.js → servers/getDashboardAppUrl.js} +0 -0
package/oclif.manifest.json
CHANGED
|
@@ -710,6 +710,13 @@
|
|
|
710
710
|
"allowNo": true,
|
|
711
711
|
"type": "boolean"
|
|
712
712
|
},
|
|
713
|
+
"unstable--workbench": {
|
|
714
|
+
"description": "Opt into workbench: scaffolds the CLI config with unstable_defineApp",
|
|
715
|
+
"hidden": true,
|
|
716
|
+
"name": "unstable--workbench",
|
|
717
|
+
"allowNo": true,
|
|
718
|
+
"type": "boolean"
|
|
719
|
+
},
|
|
713
720
|
"visibility": {
|
|
714
721
|
"description": "Visibility mode for dataset",
|
|
715
722
|
"name": "visibility",
|
|
@@ -4165,6 +4172,32 @@
|
|
|
4165
4172
|
"validate.js"
|
|
4166
4173
|
]
|
|
4167
4174
|
},
|
|
4175
|
+
"skills:install": {
|
|
4176
|
+
"aliases": [],
|
|
4177
|
+
"args": {},
|
|
4178
|
+
"description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, VS Code, VS Code Insiders)",
|
|
4179
|
+
"examples": [
|
|
4180
|
+
{
|
|
4181
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4182
|
+
"description": "Install Sanity agent skills for detected AI editors"
|
|
4183
|
+
}
|
|
4184
|
+
],
|
|
4185
|
+
"flags": {},
|
|
4186
|
+
"hasDynamicHelp": false,
|
|
4187
|
+
"hiddenAliases": [],
|
|
4188
|
+
"id": "skills:install",
|
|
4189
|
+
"pluginAlias": "@sanity/cli",
|
|
4190
|
+
"pluginName": "@sanity/cli",
|
|
4191
|
+
"pluginType": "core",
|
|
4192
|
+
"strict": true,
|
|
4193
|
+
"isESM": true,
|
|
4194
|
+
"relativePath": [
|
|
4195
|
+
"dist",
|
|
4196
|
+
"commands",
|
|
4197
|
+
"skills",
|
|
4198
|
+
"install.js"
|
|
4199
|
+
]
|
|
4200
|
+
},
|
|
4168
4201
|
"telemetry:disable": {
|
|
4169
4202
|
"aliases": [],
|
|
4170
4203
|
"args": {},
|
|
@@ -4850,26 +4883,26 @@
|
|
|
4850
4883
|
"unlink.js"
|
|
4851
4884
|
]
|
|
4852
4885
|
},
|
|
4853
|
-
"datasets:
|
|
4886
|
+
"datasets:embeddings:disable": {
|
|
4854
4887
|
"aliases": [],
|
|
4855
4888
|
"args": {
|
|
4856
4889
|
"dataset": {
|
|
4857
|
-
"description": "
|
|
4890
|
+
"description": "Dataset name to disable embeddings for",
|
|
4858
4891
|
"name": "dataset",
|
|
4859
|
-
"required":
|
|
4892
|
+
"required": false
|
|
4860
4893
|
}
|
|
4861
4894
|
},
|
|
4862
|
-
"description": "
|
|
4895
|
+
"description": "Disable embeddings for a dataset",
|
|
4863
4896
|
"examples": [
|
|
4864
4897
|
{
|
|
4865
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4866
|
-
"description": "
|
|
4898
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4899
|
+
"description": "Disable embeddings for the production dataset"
|
|
4867
4900
|
}
|
|
4868
4901
|
],
|
|
4869
4902
|
"flags": {
|
|
4870
4903
|
"project-id": {
|
|
4871
4904
|
"char": "p",
|
|
4872
|
-
"description": "Project ID to
|
|
4905
|
+
"description": "Project ID to disable embeddings for (overrides CLI configuration)",
|
|
4873
4906
|
"helpGroup": "OVERRIDE",
|
|
4874
4907
|
"name": "project-id",
|
|
4875
4908
|
"hasDynamicHelp": false,
|
|
@@ -4880,9 +4913,9 @@
|
|
|
4880
4913
|
},
|
|
4881
4914
|
"hasDynamicHelp": false,
|
|
4882
4915
|
"hiddenAliases": [
|
|
4883
|
-
"dataset:
|
|
4916
|
+
"dataset:embeddings:disable"
|
|
4884
4917
|
],
|
|
4885
|
-
"id": "datasets:
|
|
4918
|
+
"id": "datasets:embeddings:disable",
|
|
4886
4919
|
"pluginAlias": "@sanity/cli",
|
|
4887
4920
|
"pluginName": "@sanity/cli",
|
|
4888
4921
|
"pluginType": "core",
|
|
@@ -4892,56 +4925,65 @@
|
|
|
4892
4925
|
"dist",
|
|
4893
4926
|
"commands",
|
|
4894
4927
|
"datasets",
|
|
4895
|
-
"
|
|
4896
|
-
"
|
|
4928
|
+
"embeddings",
|
|
4929
|
+
"disable.js"
|
|
4897
4930
|
]
|
|
4898
4931
|
},
|
|
4899
|
-
"datasets:
|
|
4932
|
+
"datasets:embeddings:enable": {
|
|
4900
4933
|
"aliases": [],
|
|
4901
4934
|
"args": {
|
|
4902
4935
|
"dataset": {
|
|
4903
|
-
"description": "
|
|
4936
|
+
"description": "Dataset name to enable embeddings for",
|
|
4904
4937
|
"name": "dataset",
|
|
4905
|
-
"required":
|
|
4906
|
-
},
|
|
4907
|
-
"mode": {
|
|
4908
|
-
"description": "The visibility mode to set",
|
|
4909
|
-
"name": "mode",
|
|
4910
|
-
"options": [
|
|
4911
|
-
"public",
|
|
4912
|
-
"private"
|
|
4913
|
-
],
|
|
4914
|
-
"required": true
|
|
4938
|
+
"required": false
|
|
4915
4939
|
}
|
|
4916
4940
|
},
|
|
4917
|
-
"description": "
|
|
4941
|
+
"description": "Enable embeddings for a dataset",
|
|
4918
4942
|
"examples": [
|
|
4919
4943
|
{
|
|
4920
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4921
|
-
"description": "
|
|
4944
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4945
|
+
"description": "Enable embeddings for the production dataset"
|
|
4922
4946
|
},
|
|
4923
4947
|
{
|
|
4924
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4925
|
-
"description": "
|
|
4948
|
+
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
4949
|
+
"description": "Enable embeddings with a specific projection"
|
|
4950
|
+
},
|
|
4951
|
+
{
|
|
4952
|
+
"command": "<%= config.bin %> <%= command.id %> production --wait",
|
|
4953
|
+
"description": "Enable embeddings and wait for processing to complete"
|
|
4926
4954
|
}
|
|
4927
4955
|
],
|
|
4928
4956
|
"flags": {
|
|
4929
4957
|
"project-id": {
|
|
4930
4958
|
"char": "p",
|
|
4931
|
-
"description": "Project ID to
|
|
4959
|
+
"description": "Project ID to enable embeddings for (overrides CLI configuration)",
|
|
4932
4960
|
"helpGroup": "OVERRIDE",
|
|
4933
4961
|
"name": "project-id",
|
|
4934
4962
|
"hasDynamicHelp": false,
|
|
4935
4963
|
"helpValue": "<id>",
|
|
4936
4964
|
"multiple": false,
|
|
4937
4965
|
"type": "option"
|
|
4966
|
+
},
|
|
4967
|
+
"projection": {
|
|
4968
|
+
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
4969
|
+
"name": "projection",
|
|
4970
|
+
"required": false,
|
|
4971
|
+
"hasDynamicHelp": false,
|
|
4972
|
+
"multiple": false,
|
|
4973
|
+
"type": "option"
|
|
4974
|
+
},
|
|
4975
|
+
"wait": {
|
|
4976
|
+
"description": "Wait for embeddings processing to complete before returning",
|
|
4977
|
+
"name": "wait",
|
|
4978
|
+
"allowNo": false,
|
|
4979
|
+
"type": "boolean"
|
|
4938
4980
|
}
|
|
4939
4981
|
},
|
|
4940
4982
|
"hasDynamicHelp": false,
|
|
4941
4983
|
"hiddenAliases": [
|
|
4942
|
-
"dataset:
|
|
4984
|
+
"dataset:embeddings:enable"
|
|
4943
4985
|
],
|
|
4944
|
-
"id": "datasets:
|
|
4986
|
+
"id": "datasets:embeddings:enable",
|
|
4945
4987
|
"pluginAlias": "@sanity/cli",
|
|
4946
4988
|
"pluginName": "@sanity/cli",
|
|
4947
4989
|
"pluginType": "core",
|
|
@@ -4951,30 +4993,30 @@
|
|
|
4951
4993
|
"dist",
|
|
4952
4994
|
"commands",
|
|
4953
4995
|
"datasets",
|
|
4954
|
-
"
|
|
4955
|
-
"
|
|
4996
|
+
"embeddings",
|
|
4997
|
+
"enable.js"
|
|
4956
4998
|
]
|
|
4957
4999
|
},
|
|
4958
|
-
"datasets:embeddings:
|
|
5000
|
+
"datasets:embeddings:status": {
|
|
4959
5001
|
"aliases": [],
|
|
4960
5002
|
"args": {
|
|
4961
5003
|
"dataset": {
|
|
4962
|
-
"description": "
|
|
5004
|
+
"description": "The name of the dataset to check embeddings status for",
|
|
4963
5005
|
"name": "dataset",
|
|
4964
5006
|
"required": false
|
|
4965
5007
|
}
|
|
4966
5008
|
},
|
|
4967
|
-
"description": "
|
|
5009
|
+
"description": "Show embeddings settings and status for a dataset",
|
|
4968
5010
|
"examples": [
|
|
4969
5011
|
{
|
|
4970
5012
|
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4971
|
-
"description": "
|
|
5013
|
+
"description": "Show embeddings status for the production dataset"
|
|
4972
5014
|
}
|
|
4973
5015
|
],
|
|
4974
5016
|
"flags": {
|
|
4975
5017
|
"project-id": {
|
|
4976
5018
|
"char": "p",
|
|
4977
|
-
"description": "Project ID to
|
|
5019
|
+
"description": "Project ID to check embeddings status for (overrides CLI configuration)",
|
|
4978
5020
|
"helpGroup": "OVERRIDE",
|
|
4979
5021
|
"name": "project-id",
|
|
4980
5022
|
"hasDynamicHelp": false,
|
|
@@ -4985,9 +5027,9 @@
|
|
|
4985
5027
|
},
|
|
4986
5028
|
"hasDynamicHelp": false,
|
|
4987
5029
|
"hiddenAliases": [
|
|
4988
|
-
"dataset:embeddings:
|
|
5030
|
+
"dataset:embeddings:status"
|
|
4989
5031
|
],
|
|
4990
|
-
"id": "datasets:embeddings:
|
|
5032
|
+
"id": "datasets:embeddings:status",
|
|
4991
5033
|
"pluginAlias": "@sanity/cli",
|
|
4992
5034
|
"pluginName": "@sanity/cli",
|
|
4993
5035
|
"pluginType": "core",
|
|
@@ -4998,64 +5040,42 @@
|
|
|
4998
5040
|
"commands",
|
|
4999
5041
|
"datasets",
|
|
5000
5042
|
"embeddings",
|
|
5001
|
-
"
|
|
5043
|
+
"status.js"
|
|
5002
5044
|
]
|
|
5003
5045
|
},
|
|
5004
|
-
"datasets:
|
|
5046
|
+
"datasets:visibility:get": {
|
|
5005
5047
|
"aliases": [],
|
|
5006
5048
|
"args": {
|
|
5007
5049
|
"dataset": {
|
|
5008
|
-
"description": "
|
|
5050
|
+
"description": "The name of the dataset to get visibility for",
|
|
5009
5051
|
"name": "dataset",
|
|
5010
|
-
"required":
|
|
5052
|
+
"required": true
|
|
5011
5053
|
}
|
|
5012
5054
|
},
|
|
5013
|
-
"description": "
|
|
5055
|
+
"description": "Get the visibility of a dataset",
|
|
5014
5056
|
"examples": [
|
|
5015
5057
|
{
|
|
5016
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5017
|
-
"description": "
|
|
5018
|
-
},
|
|
5019
|
-
{
|
|
5020
|
-
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
5021
|
-
"description": "Enable embeddings with a specific projection"
|
|
5022
|
-
},
|
|
5023
|
-
{
|
|
5024
|
-
"command": "<%= config.bin %> <%= command.id %> production --wait",
|
|
5025
|
-
"description": "Enable embeddings and wait for processing to complete"
|
|
5058
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
5059
|
+
"description": "Check the visibility of a dataset"
|
|
5026
5060
|
}
|
|
5027
5061
|
],
|
|
5028
5062
|
"flags": {
|
|
5029
5063
|
"project-id": {
|
|
5030
5064
|
"char": "p",
|
|
5031
|
-
"description": "Project ID to
|
|
5065
|
+
"description": "Project ID to get dataset visibility for (overrides CLI configuration)",
|
|
5032
5066
|
"helpGroup": "OVERRIDE",
|
|
5033
5067
|
"name": "project-id",
|
|
5034
5068
|
"hasDynamicHelp": false,
|
|
5035
5069
|
"helpValue": "<id>",
|
|
5036
5070
|
"multiple": false,
|
|
5037
5071
|
"type": "option"
|
|
5038
|
-
},
|
|
5039
|
-
"projection": {
|
|
5040
|
-
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
5041
|
-
"name": "projection",
|
|
5042
|
-
"required": false,
|
|
5043
|
-
"hasDynamicHelp": false,
|
|
5044
|
-
"multiple": false,
|
|
5045
|
-
"type": "option"
|
|
5046
|
-
},
|
|
5047
|
-
"wait": {
|
|
5048
|
-
"description": "Wait for embeddings processing to complete before returning",
|
|
5049
|
-
"name": "wait",
|
|
5050
|
-
"allowNo": false,
|
|
5051
|
-
"type": "boolean"
|
|
5052
5072
|
}
|
|
5053
5073
|
},
|
|
5054
5074
|
"hasDynamicHelp": false,
|
|
5055
5075
|
"hiddenAliases": [
|
|
5056
|
-
"dataset:
|
|
5076
|
+
"dataset:visibility:get"
|
|
5057
5077
|
],
|
|
5058
|
-
"id": "datasets:
|
|
5078
|
+
"id": "datasets:visibility:get",
|
|
5059
5079
|
"pluginAlias": "@sanity/cli",
|
|
5060
5080
|
"pluginName": "@sanity/cli",
|
|
5061
5081
|
"pluginType": "core",
|
|
@@ -5065,30 +5085,43 @@
|
|
|
5065
5085
|
"dist",
|
|
5066
5086
|
"commands",
|
|
5067
5087
|
"datasets",
|
|
5068
|
-
"
|
|
5069
|
-
"
|
|
5088
|
+
"visibility",
|
|
5089
|
+
"get.js"
|
|
5070
5090
|
]
|
|
5071
5091
|
},
|
|
5072
|
-
"datasets:
|
|
5092
|
+
"datasets:visibility:set": {
|
|
5073
5093
|
"aliases": [],
|
|
5074
5094
|
"args": {
|
|
5075
5095
|
"dataset": {
|
|
5076
|
-
"description": "The name of the dataset to
|
|
5096
|
+
"description": "The name of the dataset to set visibility for",
|
|
5077
5097
|
"name": "dataset",
|
|
5078
|
-
"required":
|
|
5098
|
+
"required": true
|
|
5099
|
+
},
|
|
5100
|
+
"mode": {
|
|
5101
|
+
"description": "The visibility mode to set",
|
|
5102
|
+
"name": "mode",
|
|
5103
|
+
"options": [
|
|
5104
|
+
"public",
|
|
5105
|
+
"private"
|
|
5106
|
+
],
|
|
5107
|
+
"required": true
|
|
5079
5108
|
}
|
|
5080
5109
|
},
|
|
5081
|
-
"description": "
|
|
5110
|
+
"description": "Set the visibility of a dataset",
|
|
5082
5111
|
"examples": [
|
|
5083
5112
|
{
|
|
5084
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5085
|
-
"description": "
|
|
5113
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset private",
|
|
5114
|
+
"description": "Make a dataset private"
|
|
5115
|
+
},
|
|
5116
|
+
{
|
|
5117
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset public",
|
|
5118
|
+
"description": "Make a dataset public"
|
|
5086
5119
|
}
|
|
5087
5120
|
],
|
|
5088
5121
|
"flags": {
|
|
5089
5122
|
"project-id": {
|
|
5090
5123
|
"char": "p",
|
|
5091
|
-
"description": "Project ID to
|
|
5124
|
+
"description": "Project ID to set dataset visibility for (overrides CLI configuration)",
|
|
5092
5125
|
"helpGroup": "OVERRIDE",
|
|
5093
5126
|
"name": "project-id",
|
|
5094
5127
|
"hasDynamicHelp": false,
|
|
@@ -5099,9 +5132,9 @@
|
|
|
5099
5132
|
},
|
|
5100
5133
|
"hasDynamicHelp": false,
|
|
5101
5134
|
"hiddenAliases": [
|
|
5102
|
-
"dataset:
|
|
5135
|
+
"dataset:visibility:set"
|
|
5103
5136
|
],
|
|
5104
|
-
"id": "datasets:
|
|
5137
|
+
"id": "datasets:visibility:set",
|
|
5105
5138
|
"pluginAlias": "@sanity/cli",
|
|
5106
5139
|
"pluginName": "@sanity/cli",
|
|
5107
5140
|
"pluginType": "core",
|
|
@@ -5111,10 +5144,10 @@
|
|
|
5111
5144
|
"dist",
|
|
5112
5145
|
"commands",
|
|
5113
5146
|
"datasets",
|
|
5114
|
-
"
|
|
5115
|
-
"
|
|
5147
|
+
"visibility",
|
|
5148
|
+
"set.js"
|
|
5116
5149
|
]
|
|
5117
5150
|
}
|
|
5118
5151
|
},
|
|
5119
|
-
"version": "7.
|
|
5152
|
+
"version": "7.3.0"
|
|
5120
5153
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity projects and organizations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
"source": "./src/exports/_internal.ts",
|
|
46
46
|
"default": "./dist/exports/_internal.js"
|
|
47
47
|
},
|
|
48
|
+
"./runtime": {
|
|
49
|
+
"source": "./src/exports/runtime.ts",
|
|
50
|
+
"default": "./dist/exports/runtime.js"
|
|
51
|
+
},
|
|
48
52
|
"./package.json": "./package.json"
|
|
49
53
|
},
|
|
50
54
|
"publishConfig": {
|
|
@@ -54,21 +58,22 @@
|
|
|
54
58
|
"@oclif/core": "^4.11.4",
|
|
55
59
|
"@oclif/plugin-help": "^6.2.50",
|
|
56
60
|
"@oclif/plugin-not-found": "^3.2.87",
|
|
57
|
-
"@sanity/client": "^7.
|
|
58
|
-
"@sanity/codegen": "^7.0.
|
|
61
|
+
"@sanity/client": "^7.23.0",
|
|
62
|
+
"@sanity/codegen": "^7.0.3",
|
|
59
63
|
"@sanity/descriptors": "^1.3.0",
|
|
60
64
|
"@sanity/export": "^6.2.0",
|
|
61
65
|
"@sanity/generate-help-url": "^4.0.0",
|
|
62
66
|
"@sanity/id-utils": "^1.0.0",
|
|
63
|
-
"@sanity/import": "^6.0.
|
|
64
|
-
"@sanity/migrate": "^7.0.
|
|
65
|
-
"@sanity/runtime-cli": "^
|
|
66
|
-
"@sanity/schema": "^
|
|
67
|
+
"@sanity/import": "^6.0.3",
|
|
68
|
+
"@sanity/migrate": "^7.0.3",
|
|
69
|
+
"@sanity/runtime-cli": "^17.0.0",
|
|
70
|
+
"@sanity/schema": "^6.1.0",
|
|
67
71
|
"@sanity/telemetry": "^1.1.0",
|
|
68
72
|
"@sanity/template-validator": "^3.1.0",
|
|
69
|
-
"@sanity/types": "^
|
|
73
|
+
"@sanity/types": "^6.1.0",
|
|
70
74
|
"@sanity/worker-channels": "^2.0.0",
|
|
71
75
|
"@vercel/frameworks": "3.21.1",
|
|
76
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
72
77
|
"chokidar": "^5.0.0",
|
|
73
78
|
"console-table-printer": "^2.15.0",
|
|
74
79
|
"date-fns": "^4.4.0",
|
|
@@ -114,21 +119,22 @@
|
|
|
114
119
|
"which": "^6.0.1",
|
|
115
120
|
"yaml": "^2.9.0",
|
|
116
121
|
"zod": "^4.4.3",
|
|
117
|
-
"@sanity/cli-
|
|
118
|
-
"@sanity/cli
|
|
122
|
+
"@sanity/cli-core": "^2.1.0",
|
|
123
|
+
"@sanity/workbench-cli": "^1.1.0",
|
|
124
|
+
"@sanity/cli-build": "^1.1.0"
|
|
119
125
|
},
|
|
120
126
|
"devDependencies": {
|
|
121
127
|
"@eslint/compat": "^2.1.0",
|
|
122
|
-
"@sanity/pkg-utils": "^10.5.
|
|
128
|
+
"@sanity/pkg-utils": "^10.5.8",
|
|
123
129
|
"@sanity/ui": "^3.2.0",
|
|
124
130
|
"@swc/cli": "^0.8.1",
|
|
125
|
-
"@swc/core": "^1.15.
|
|
131
|
+
"@swc/core": "^1.15.41",
|
|
126
132
|
"@types/debug": "^4.1.13",
|
|
127
133
|
"@types/gunzip-maybe": "^1.4.3",
|
|
128
134
|
"@types/jsdom": "^28.0.3",
|
|
129
135
|
"@types/lodash-es": "^4.17.12",
|
|
130
136
|
"@types/minimist": "^1.2.5",
|
|
131
|
-
"@types/node": "^20.
|
|
137
|
+
"@types/node": "^22.20.0",
|
|
132
138
|
"@types/picomatch": "^4.0.3",
|
|
133
139
|
"@types/react": "^19.2.16",
|
|
134
140
|
"@types/react-dom": "^19.2.3",
|
|
@@ -137,7 +143,7 @@
|
|
|
137
143
|
"@types/tar-fs": "^2.0.4",
|
|
138
144
|
"@types/tar-stream": "^3.1.4",
|
|
139
145
|
"@types/which": "^3.0.4",
|
|
140
|
-
"@vitest/coverage-istanbul": "^4.1.
|
|
146
|
+
"@vitest/coverage-istanbul": "^4.1.9",
|
|
141
147
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
142
148
|
"es-module-lexer": "^2.1.0",
|
|
143
149
|
"eslint": "^10.4.1",
|
|
@@ -146,12 +152,12 @@
|
|
|
146
152
|
"oclif": "^4.23.10",
|
|
147
153
|
"publint": "^0.3.21",
|
|
148
154
|
"rimraf": "^6.0.1",
|
|
149
|
-
"sanity": "^
|
|
155
|
+
"sanity": "^6.1.0",
|
|
150
156
|
"typescript": "^5.9.3",
|
|
151
|
-
"vitest": "^4.1.
|
|
157
|
+
"vitest": "^4.1.9",
|
|
152
158
|
"@repo/package.config": "0.0.1",
|
|
153
159
|
"@repo/tsconfig": "3.70.0",
|
|
154
|
-
"@sanity/cli-test": "
|
|
160
|
+
"@sanity/cli-test": "2.0.0",
|
|
155
161
|
"@sanity/eslint-config-cli": "1.1.2"
|
|
156
162
|
},
|
|
157
163
|
"peerDependencies": {
|
|
@@ -162,8 +168,11 @@
|
|
|
162
168
|
"optional": true
|
|
163
169
|
}
|
|
164
170
|
},
|
|
171
|
+
"overrides": {
|
|
172
|
+
"rolldown": "1.0.0"
|
|
173
|
+
},
|
|
165
174
|
"engines": {
|
|
166
|
-
"node": ">=
|
|
175
|
+
"node": ">=22.12"
|
|
167
176
|
},
|
|
168
177
|
"scripts": {
|
|
169
178
|
"build": "swc --delete-dir-on-start --strip-leading-paths --out-dir dist/ src --ignore '**/*.test.ts' --ignore '**/__tests__/**'",
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
import { getLocalPackageVersion, readPackageJson } from '@sanity/cli-core';
|
|
3
|
-
import { oneline } from 'oneline';
|
|
4
|
-
import { minVersion, satisfies } from 'semver';
|
|
5
|
-
const defaultStudioManifestProps = {
|
|
6
|
-
name: 'studio',
|
|
7
|
-
version: '1.0.0'
|
|
8
|
-
};
|
|
9
|
-
const styledComponentsVersionRange = '^6.1.15';
|
|
10
|
-
/**
|
|
11
|
-
* Checks that the studio has declared and installed the required dependencies
|
|
12
|
-
* needed by the Sanity modules. While we generally use regular, explicit
|
|
13
|
-
* dependencies in modules, there are certain dependencies that are better
|
|
14
|
-
* served being peer dependencies, such as react and styled-components.
|
|
15
|
-
*
|
|
16
|
-
* If these dependencies are not installed/declared, we report an error
|
|
17
|
-
* and instruct the user to install them manually.
|
|
18
|
-
*
|
|
19
|
-
* Additionally, returns the version of the 'sanity' dependency from the package.json.
|
|
20
|
-
*/ export async function checkRequiredDependencies(options) {
|
|
21
|
-
const { isApp, output, workDir: studioPath } = options;
|
|
22
|
-
// currently there's no check needed for core apps,
|
|
23
|
-
// but this should be removed once they are more mature
|
|
24
|
-
if (isApp) {
|
|
25
|
-
return {
|
|
26
|
-
installedSanityVersion: ''
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
const [studioPackageManifest, installedStyledComponentsVersion, installedSanityVersion] = await Promise.all([
|
|
30
|
-
readPackageJson(path.join(studioPath, 'package.json'), {
|
|
31
|
-
defaults: defaultStudioManifestProps,
|
|
32
|
-
skipSchemaValidation: true
|
|
33
|
-
}),
|
|
34
|
-
getLocalPackageVersion('styled-components', studioPath),
|
|
35
|
-
getLocalPackageVersion('sanity', studioPath)
|
|
36
|
-
]);
|
|
37
|
-
const wantedStyledComponentsVersionRange = styledComponentsVersionRange;
|
|
38
|
-
// Retrieve the version of the 'sanity' dependency
|
|
39
|
-
if (!installedSanityVersion) {
|
|
40
|
-
output.error('Failed to read the installed sanity version.', {
|
|
41
|
-
exit: 1
|
|
42
|
-
});
|
|
43
|
-
return {
|
|
44
|
-
installedSanityVersion: ''
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
// The studio _must_ now declare `styled-components` as a dependency. If it's not there,
|
|
48
|
-
// we'll want to automatically _add it_ to the manifest and tell the user to reinstall
|
|
49
|
-
// dependencies before running whatever command was being run
|
|
50
|
-
const declaredStyledComponentsVersion = studioPackageManifest.dependencies?.['styled-components'] || studioPackageManifest?.devDependencies?.['styled-components'];
|
|
51
|
-
if (!declaredStyledComponentsVersion) {
|
|
52
|
-
output.error(oneline`
|
|
53
|
-
Declared dependency \`styled-components\` is not installed - run
|
|
54
|
-
\`npm install\`, \`yarn install\` or \`pnpm install\` to install it before re-running this command.
|
|
55
|
-
`, {
|
|
56
|
-
exit: 1
|
|
57
|
-
});
|
|
58
|
-
return {
|
|
59
|
-
installedSanityVersion
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
// We ignore catalog identifiers since we check the actual version anyway
|
|
63
|
-
const isStyledComponentsVersionRangeInCatalog = declaredStyledComponentsVersion.startsWith('catalog:');
|
|
64
|
-
// Theoretically the version specified in package.json could be incorrect, eg `foo`
|
|
65
|
-
let minDeclaredStyledComponentsVersion = null;
|
|
66
|
-
try {
|
|
67
|
-
minDeclaredStyledComponentsVersion = minVersion(declaredStyledComponentsVersion);
|
|
68
|
-
} catch {
|
|
69
|
-
// Intentional fall-through (variable will be left as null, throwing below)
|
|
70
|
-
}
|
|
71
|
-
if (!minDeclaredStyledComponentsVersion && !isStyledComponentsVersionRangeInCatalog) {
|
|
72
|
-
output.error(oneline`
|
|
73
|
-
Declared dependency \`styled-components\` has an invalid version range:
|
|
74
|
-
\`${declaredStyledComponentsVersion}\`.
|
|
75
|
-
`, {
|
|
76
|
-
exit: 1
|
|
77
|
-
});
|
|
78
|
-
return {
|
|
79
|
-
installedSanityVersion
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
// The declared version should be semver-compatible with the version specified as a
|
|
83
|
-
// peer dependency in `sanity`. If not, we should tell the user to change it.
|
|
84
|
-
//
|
|
85
|
-
// Exception: Ranges are hard to compare. `>=5.0.0 && <=5.3.2 || ^6`... Comparing this
|
|
86
|
-
// to anything is going to be challenging, so only compare "simple" ranges/versions
|
|
87
|
-
// (^x.x.x / ~x.x.x / x.x.x)
|
|
88
|
-
if (!isStyledComponentsVersionRangeInCatalog && isComparableRange(declaredStyledComponentsVersion) && !satisfies(minDeclaredStyledComponentsVersion, wantedStyledComponentsVersionRange)) {
|
|
89
|
-
output.warn(oneline`
|
|
90
|
-
Declared version of styled-components (${declaredStyledComponentsVersion})
|
|
91
|
-
is not compatible with the version required by sanity (${wantedStyledComponentsVersionRange}).
|
|
92
|
-
This might cause problems!
|
|
93
|
-
`);
|
|
94
|
-
}
|
|
95
|
-
// Ensure the studio has _installed_ a version of `styled-components`
|
|
96
|
-
if (!installedStyledComponentsVersion) {
|
|
97
|
-
output.error(oneline`
|
|
98
|
-
Declared dependency \`styled-components\` is not installed - run
|
|
99
|
-
\`npm install\`, \`yarn install\` or \`pnpm install\` to install it before re-running this command.
|
|
100
|
-
`, {
|
|
101
|
-
exit: 1
|
|
102
|
-
});
|
|
103
|
-
return {
|
|
104
|
-
installedSanityVersion
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
// The studio should have an _installed_ version of `styled-components`, and it should
|
|
108
|
-
// be semver compatible with the version specified in `sanity` peer dependencies.
|
|
109
|
-
if (!satisfies(installedStyledComponentsVersion, wantedStyledComponentsVersionRange)) {
|
|
110
|
-
output.warn(oneline`
|
|
111
|
-
Installed version of styled-components (${installedStyledComponentsVersion})
|
|
112
|
-
is not compatible with the version required by sanity (${wantedStyledComponentsVersionRange}).
|
|
113
|
-
This might cause problems!
|
|
114
|
-
`);
|
|
115
|
-
}
|
|
116
|
-
return {
|
|
117
|
-
installedSanityVersion
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
function isComparableRange(range) {
|
|
121
|
-
return /^[\^~]?\d+(\.\d+)?(\.\d+)?$/.test(range);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
//# sourceMappingURL=checkRequiredDependencies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/actions/build/checkRequiredDependencies.ts"],"sourcesContent":["import path from 'node:path'\n\nimport {\n getLocalPackageVersion,\n type Output,\n type PackageJson,\n readPackageJson,\n} from '@sanity/cli-core'\nimport {oneline} from 'oneline'\nimport {minVersion, satisfies, type SemVer} from 'semver'\n\nconst defaultStudioManifestProps: Partial<PackageJson> = {\n name: 'studio',\n version: '1.0.0',\n}\n\ninterface CheckResult {\n installedSanityVersion: string\n}\n\ninterface CheckRequiredDependenciesOptions {\n isApp: boolean\n output: Output\n workDir: string\n}\n\nconst styledComponentsVersionRange = '^6.1.15'\n\n/**\n * Checks that the studio has declared and installed the required dependencies\n * needed by the Sanity modules. While we generally use regular, explicit\n * dependencies in modules, there are certain dependencies that are better\n * served being peer dependencies, such as react and styled-components.\n *\n * If these dependencies are not installed/declared, we report an error\n * and instruct the user to install them manually.\n *\n * Additionally, returns the version of the 'sanity' dependency from the package.json.\n */\nexport async function checkRequiredDependencies(\n options: CheckRequiredDependenciesOptions,\n): Promise<CheckResult> {\n const {isApp, output, workDir: studioPath} = options\n // currently there's no check needed for core apps,\n // but this should be removed once they are more mature\n if (isApp) {\n return {installedSanityVersion: ''}\n }\n\n const [studioPackageManifest, installedStyledComponentsVersion, installedSanityVersion] =\n await Promise.all([\n readPackageJson(path.join(studioPath, 'package.json'), {\n defaults: defaultStudioManifestProps,\n skipSchemaValidation: true,\n }),\n getLocalPackageVersion('styled-components', studioPath),\n getLocalPackageVersion('sanity', studioPath),\n ])\n\n const wantedStyledComponentsVersionRange = styledComponentsVersionRange\n\n // Retrieve the version of the 'sanity' dependency\n if (!installedSanityVersion) {\n output.error('Failed to read the installed sanity version.', {exit: 1})\n return {installedSanityVersion: ''}\n }\n\n // The studio _must_ now declare `styled-components` as a dependency. If it's not there,\n // we'll want to automatically _add it_ to the manifest and tell the user to reinstall\n // dependencies before running whatever command was being run\n const declaredStyledComponentsVersion =\n studioPackageManifest.dependencies?.['styled-components'] ||\n studioPackageManifest?.devDependencies?.['styled-components']\n\n if (!declaredStyledComponentsVersion) {\n output.error(\n oneline`\n Declared dependency \\`styled-components\\` is not installed - run\n \\`npm install\\`, \\`yarn install\\` or \\`pnpm install\\` to install it before re-running this command.\n `,\n {exit: 1},\n )\n return {installedSanityVersion}\n }\n\n // We ignore catalog identifiers since we check the actual version anyway\n const isStyledComponentsVersionRangeInCatalog =\n declaredStyledComponentsVersion.startsWith('catalog:')\n // Theoretically the version specified in package.json could be incorrect, eg `foo`\n let minDeclaredStyledComponentsVersion: SemVer | null = null\n try {\n minDeclaredStyledComponentsVersion = minVersion(declaredStyledComponentsVersion)\n } catch {\n // Intentional fall-through (variable will be left as null, throwing below)\n }\n\n if (!minDeclaredStyledComponentsVersion && !isStyledComponentsVersionRangeInCatalog) {\n output.error(\n oneline`\n Declared dependency \\`styled-components\\` has an invalid version range:\n \\`${declaredStyledComponentsVersion}\\`.\n `,\n {exit: 1},\n )\n return {installedSanityVersion}\n }\n\n // The declared version should be semver-compatible with the version specified as a\n // peer dependency in `sanity`. If not, we should tell the user to change it.\n //\n // Exception: Ranges are hard to compare. `>=5.0.0 && <=5.3.2 || ^6`... Comparing this\n // to anything is going to be challenging, so only compare \"simple\" ranges/versions\n // (^x.x.x / ~x.x.x / x.x.x)\n if (\n !isStyledComponentsVersionRangeInCatalog &&\n isComparableRange(declaredStyledComponentsVersion) &&\n !satisfies(minDeclaredStyledComponentsVersion!, wantedStyledComponentsVersionRange)\n ) {\n output.warn(oneline`\n Declared version of styled-components (${declaredStyledComponentsVersion})\n is not compatible with the version required by sanity (${wantedStyledComponentsVersionRange}).\n This might cause problems!\n `)\n }\n\n // Ensure the studio has _installed_ a version of `styled-components`\n if (!installedStyledComponentsVersion) {\n output.error(\n oneline`\n Declared dependency \\`styled-components\\` is not installed - run\n \\`npm install\\`, \\`yarn install\\` or \\`pnpm install\\` to install it before re-running this command.\n `,\n {exit: 1},\n )\n return {installedSanityVersion}\n }\n\n // The studio should have an _installed_ version of `styled-components`, and it should\n // be semver compatible with the version specified in `sanity` peer dependencies.\n if (!satisfies(installedStyledComponentsVersion, wantedStyledComponentsVersionRange)) {\n output.warn(oneline`\n Installed version of styled-components (${installedStyledComponentsVersion})\n is not compatible with the version required by sanity (${wantedStyledComponentsVersionRange}).\n This might cause problems!\n `)\n }\n\n return {installedSanityVersion}\n}\n\nfunction isComparableRange(range: string): boolean {\n return /^[\\^~]?\\d+(\\.\\d+)?(\\.\\d+)?$/.test(range)\n}\n"],"names":["path","getLocalPackageVersion","readPackageJson","oneline","minVersion","satisfies","defaultStudioManifestProps","name","version","styledComponentsVersionRange","checkRequiredDependencies","options","isApp","output","workDir","studioPath","installedSanityVersion","studioPackageManifest","installedStyledComponentsVersion","Promise","all","join","defaults","skipSchemaValidation","wantedStyledComponentsVersionRange","error","exit","declaredStyledComponentsVersion","dependencies","devDependencies","isStyledComponentsVersionRangeInCatalog","startsWith","minDeclaredStyledComponentsVersion","isComparableRange","warn","range","test"],"mappings":"AAAA,OAAOA,UAAU,YAAW;AAE5B,SACEC,sBAAsB,EAGtBC,eAAe,QACV,mBAAkB;AACzB,SAAQC,OAAO,QAAO,UAAS;AAC/B,SAAQC,UAAU,EAAEC,SAAS,QAAoB,SAAQ;AAEzD,MAAMC,6BAAmD;IACvDC,MAAM;IACNC,SAAS;AACX;AAYA,MAAMC,+BAA+B;AAErC;;;;;;;;;;CAUC,GACD,OAAO,eAAeC,0BACpBC,OAAyC;IAEzC,MAAM,EAACC,KAAK,EAAEC,MAAM,EAAEC,SAASC,UAAU,EAAC,GAAGJ;IAC7C,mDAAmD;IACnD,uDAAuD;IACvD,IAAIC,OAAO;QACT,OAAO;YAACI,wBAAwB;QAAE;IACpC;IAEA,MAAM,CAACC,uBAAuBC,kCAAkCF,uBAAuB,GACrF,MAAMG,QAAQC,GAAG,CAAC;QAChBlB,gBAAgBF,KAAKqB,IAAI,CAACN,YAAY,iBAAiB;YACrDO,UAAUhB;YACViB,sBAAsB;QACxB;QACAtB,uBAAuB,qBAAqBc;QAC5Cd,uBAAuB,UAAUc;KAClC;IAEH,MAAMS,qCAAqCf;IAE3C,kDAAkD;IAClD,IAAI,CAACO,wBAAwB;QAC3BH,OAAOY,KAAK,CAAC,gDAAgD;YAACC,MAAM;QAAC;QACrE,OAAO;YAACV,wBAAwB;QAAE;IACpC;IAEA,wFAAwF;IACxF,sFAAsF;IACtF,6DAA6D;IAC7D,MAAMW,kCACJV,sBAAsBW,YAAY,EAAE,CAAC,oBAAoB,IACzDX,uBAAuBY,iBAAiB,CAAC,oBAAoB;IAE/D,IAAI,CAACF,iCAAiC;QACpCd,OAAOY,KAAK,CACVtB,OAAO,CAAC;;;IAGV,CAAC,EACC;YAACuB,MAAM;QAAC;QAEV,OAAO;YAACV;QAAsB;IAChC;IAEA,yEAAyE;IACzE,MAAMc,0CACJH,gCAAgCI,UAAU,CAAC;IAC7C,mFAAmF;IACnF,IAAIC,qCAAoD;IACxD,IAAI;QACFA,qCAAqC5B,WAAWuB;IAClD,EAAE,OAAM;IACN,2EAA2E;IAC7E;IAEA,IAAI,CAACK,sCAAsC,CAACF,yCAAyC;QACnFjB,OAAOY,KAAK,CACVtB,OAAO,CAAC;;QAEN,EAAEwB,gCAAgC;IACtC,CAAC,EACC;YAACD,MAAM;QAAC;QAEV,OAAO;YAACV;QAAsB;IAChC;IAEA,mFAAmF;IACnF,6EAA6E;IAC7E,EAAE;IACF,sFAAsF;IACtF,mFAAmF;IACnF,4BAA4B;IAC5B,IACE,CAACc,2CACDG,kBAAkBN,oCAClB,CAACtB,UAAU2B,oCAAqCR,qCAChD;QACAX,OAAOqB,IAAI,CAAC/B,OAAO,CAAC;6CACqB,EAAEwB,gCAAgC;6DAClB,EAAEH,mCAAmC;;IAE9F,CAAC;IACH;IAEA,qEAAqE;IACrE,IAAI,CAACN,kCAAkC;QACrCL,OAAOY,KAAK,CACVtB,OAAO,CAAC;;;IAGV,CAAC,EACC;YAACuB,MAAM;QAAC;QAEV,OAAO;YAACV;QAAsB;IAChC;IAEA,sFAAsF;IACtF,iFAAiF;IACjF,IAAI,CAACX,UAAUa,kCAAkCM,qCAAqC;QACpFX,OAAOqB,IAAI,CAAC/B,OAAO,CAAC;8CACsB,EAAEe,iCAAiC;6DACpB,EAAEM,mCAAmC;;IAE9F,CAAC;IACH;IAEA,OAAO;QAACR;IAAsB;AAChC;AAEA,SAASiB,kBAAkBE,KAAa;IACtC,OAAO,8BAA8BC,IAAI,CAACD;AAC5C"}
|