@sanity/cli 8.23.0 → 8.25.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/README.md +401 -87
- package/bin/run.js +7 -1
- package/dist/actions/codemods/dashboard.js +136 -8
- package/dist/actions/codemods/dashboard.js.map +1 -1
- package/dist/actions/codemods/types.js.map +1 -1
- package/dist/actions/dev/devAction.js +48 -44
- package/dist/actions/dev/devAction.js.map +1 -1
- package/dist/actions/init/initHelpers.js +1 -1
- package/dist/actions/init/initHelpers.js.map +1 -1
- package/dist/actions/init/initStudio.js +1 -1
- package/dist/actions/init/initStudio.js.map +1 -1
- package/dist/actions/init/project/getOrCreateDataset.js +10 -12
- package/dist/actions/init/project/getOrCreateDataset.js.map +1 -1
- package/dist/actions/init/project/getOrCreateProject.js +7 -5
- package/dist/actions/init/project/getOrCreateProject.js.map +1 -1
- package/dist/actions/init/project/promptUserForOrganization.js +6 -4
- package/dist/actions/init/project/promptUserForOrganization.js.map +1 -1
- package/dist/commands/api.js +1 -1
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/assets/upload.js +1 -1
- package/dist/commands/assets/upload.js.map +1 -1
- package/dist/commands/codemod.js +1 -0
- package/dist/commands/codemod.js.map +1 -1
- package/dist/commands/cors/add.js +1 -1
- package/dist/commands/cors/add.js.map +1 -1
- package/dist/commands/cors/delete.js +1 -1
- package/dist/commands/cors/delete.js.map +1 -1
- package/dist/commands/cors/list.js +1 -1
- package/dist/commands/cors/list.js.map +1 -1
- package/dist/commands/datasets/alias/create.js +1 -1
- package/dist/commands/datasets/alias/create.js.map +1 -1
- package/dist/commands/datasets/import.js +0 -8
- package/dist/commands/datasets/import.js.map +1 -1
- package/dist/commands/datasets/list.js +1 -1
- package/dist/commands/datasets/list.js.map +1 -1
- package/dist/commands/documents/create.js +1 -1
- package/dist/commands/documents/create.js.map +1 -1
- package/dist/commands/documents/delete.js +1 -1
- package/dist/commands/documents/delete.js.map +1 -1
- package/dist/commands/documents/get.js +1 -1
- package/dist/commands/documents/get.js.map +1 -1
- package/dist/commands/documents/query.js +1 -9
- package/dist/commands/documents/query.js.map +1 -1
- package/dist/commands/documents/validate.js +2 -2
- package/dist/commands/documents/validate.js.map +1 -1
- package/dist/commands/graphql/list.js +1 -1
- package/dist/commands/graphql/list.js.map +1 -1
- package/dist/commands/graphql/undeploy.js +1 -11
- package/dist/commands/graphql/undeploy.js.map +1 -1
- package/dist/commands/hooks/attempt.js +1 -1
- package/dist/commands/hooks/attempt.js.map +1 -1
- package/dist/commands/hooks/create.js +1 -1
- package/dist/commands/hooks/create.js.map +1 -1
- package/dist/commands/hooks/delete.js +1 -1
- package/dist/commands/hooks/delete.js.map +1 -1
- package/dist/commands/hooks/list.js +1 -1
- package/dist/commands/hooks/list.js.map +1 -1
- package/dist/commands/hooks/logs.js +1 -1
- package/dist/commands/hooks/logs.js.map +1 -1
- package/dist/commands/init.js +3 -5
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/migrations/run.js +5 -5
- package/dist/commands/migrations/run.js.map +1 -1
- package/dist/commands/projects/unclaimed.js +6 -5
- package/dist/commands/projects/unclaimed.js.map +1 -1
- package/dist/commands/tokens/create.js +4 -4
- package/dist/commands/tokens/create.js.map +1 -1
- package/dist/commands/tokens/delete.js +2 -2
- package/dist/commands/tokens/delete.js.map +1 -1
- package/dist/commands/tokens/list.js +2 -2
- package/dist/commands/tokens/list.js.map +1 -1
- package/dist/commands/users/invite.js +1 -1
- package/dist/commands/users/invite.js.map +1 -1
- package/dist/commands/users/list.js +1 -1
- package/dist/commands/users/list.js.map +1 -1
- package/dist/exports/invokeSanityCli/index.js +1 -1
- package/dist/exports/invokeSanityCli/index.js.map +1 -1
- package/dist/hooks/prerun/injectEnvVariables.js +1 -1
- package/dist/hooks/prerun/injectEnvVariables.js.map +1 -1
- package/dist/util/searchChoices.js +52 -0
- package/dist/util/searchChoices.js.map +1 -0
- package/dist/util/sharedFlags.js +8 -4
- package/dist/util/sharedFlags.js.map +1 -1
- package/dist/util/warnOnNonProductionEnvironment.js +4 -3
- package/dist/util/warnOnNonProductionEnvironment.js.map +1 -1
- package/oclif.manifest.json +515 -351
- package/package.json +8 -8
- package/dist/util/getSanityEnv.js +0 -8
- package/dist/util/getSanityEnv.js.map +0 -1
- package/templates/shopify/.gitignore +0 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.25.0",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity projects and organizations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"@oclif/plugin-help": "^6.2.53",
|
|
64
64
|
"@oclif/plugin-not-found": "^3.2.88",
|
|
65
65
|
"@sanity/blueprints": "^0.28.0",
|
|
66
|
-
"@sanity/cli-build": "^7.0.
|
|
67
|
-
"@sanity/cli-core": "^3.
|
|
66
|
+
"@sanity/cli-build": "^7.0.3",
|
|
67
|
+
"@sanity/cli-core": "^3.14.0",
|
|
68
68
|
"@sanity/client": "^8.9.0",
|
|
69
69
|
"@sanity/codegen": "^8.2.0",
|
|
70
70
|
"@sanity/descriptors": "^1.3.0",
|
|
@@ -73,20 +73,20 @@
|
|
|
73
73
|
"@sanity/id-utils": "^1.1.0",
|
|
74
74
|
"@sanity/import": "^7.0.4",
|
|
75
75
|
"@sanity/migrate": "^8.0.5",
|
|
76
|
-
"@sanity/runtime-cli": "17.
|
|
76
|
+
"@sanity/runtime-cli": "^17.16.0",
|
|
77
77
|
"@sanity/schema": "^6.17.0",
|
|
78
78
|
"@sanity/schema-descriptor-utils": "^1.3.3",
|
|
79
79
|
"@sanity/telemetry": "^1.1.0",
|
|
80
80
|
"@sanity/template-validator": "^3.1.1",
|
|
81
81
|
"@sanity/types": "^6.17.0",
|
|
82
|
-
"@sanity/workbench-cli": "^2.14.
|
|
82
|
+
"@sanity/workbench-cli": "^2.14.1",
|
|
83
83
|
"@sanity/worker-channels": "^2.0.0",
|
|
84
84
|
"@sanity/workflow-cli": "0.36.0",
|
|
85
85
|
"@sanity/workflow-engine": "0.36.0",
|
|
86
86
|
"@vercel/frameworks": "3.29.0",
|
|
87
87
|
"chokidar": "^5.0.0",
|
|
88
88
|
"console-table-printer": "^2.15.0",
|
|
89
|
-
"eventsource": "^5.1.
|
|
89
|
+
"eventsource": "^5.1.3",
|
|
90
90
|
"execa": "^10.0.1",
|
|
91
91
|
"form-data": "^4.0.5",
|
|
92
92
|
"get-latest-version": "^6.0.1",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"@oxc-project/types": "0.152.0",
|
|
130
130
|
"@repo/package.config": "0.0.1",
|
|
131
131
|
"@repo/tsconfig": "3.70.0",
|
|
132
|
-
"@sanity/cli-test": "
|
|
132
|
+
"@sanity/cli-test": "24.0.0",
|
|
133
133
|
"@sanity/eslint-config-cli": "1.1.3",
|
|
134
134
|
"@sanity/pkg-utils": "^12.3.4",
|
|
135
135
|
"@swc/cli": "^0.8.1",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"@types/jsdom": "^28.0.3",
|
|
139
139
|
"@types/lodash-es": "^4.17.12",
|
|
140
140
|
"@types/minimist": "^1.2.5",
|
|
141
|
-
"@types/node": "^22.20.
|
|
141
|
+
"@types/node": "^22.20.5",
|
|
142
142
|
"@types/picomatch": "^4.0.3",
|
|
143
143
|
"@types/semver": "^7.7.1",
|
|
144
144
|
"@types/tar-stream": "^3.1.4",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getCliExecutionContext } from '@sanity/cli-core/executionContext';
|
|
2
|
-
export function getSanityEnv() {
|
|
3
|
-
const context = getCliExecutionContext();
|
|
4
|
-
if (context) return context.sanityEnv ?? 'production';
|
|
5
|
-
return process.env.SANITY_INTERNAL_ENV ?? 'production';
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=getSanityEnv.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/util/getSanityEnv.ts"],"sourcesContent":["import {getCliExecutionContext} from '@sanity/cli-core/executionContext'\n\nexport function getSanityEnv() {\n const context = getCliExecutionContext()\n\n if (context) return context.sanityEnv ?? 'production'\n\n return process.env.SANITY_INTERNAL_ENV ?? 'production'\n}\n"],"names":["getCliExecutionContext","getSanityEnv","context","sanityEnv","process","env","SANITY_INTERNAL_ENV"],"mappings":"AAAA,SAAQA,sBAAsB,QAAO,oCAAmC;AAExE,OAAO,SAASC;IACd,MAAMC,UAAUF;IAEhB,IAAIE,SAAS,OAAOA,QAAQC,SAAS,IAAI;IAEzC,OAAOC,QAAQC,GAAG,CAACC,mBAAmB,IAAI;AAC5C"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# Dependencies
|
|
4
|
-
/node_modules
|
|
5
|
-
/.pnp
|
|
6
|
-
.pnp.js
|
|
7
|
-
|
|
8
|
-
# Compiled Sanity Studio
|
|
9
|
-
/dist
|
|
10
|
-
|
|
11
|
-
# Temporary Sanity runtime, generated by the CLI on every dev server start
|
|
12
|
-
/.sanity
|
|
13
|
-
|
|
14
|
-
# Logs
|
|
15
|
-
/logs
|
|
16
|
-
*.log
|
|
17
|
-
|
|
18
|
-
# Coverage directory used by testing tools
|
|
19
|
-
/coverage
|
|
20
|
-
|
|
21
|
-
# Misc
|
|
22
|
-
.DS_Store
|
|
23
|
-
*.pem
|
|
24
|
-
|
|
25
|
-
# Typescript
|
|
26
|
-
*.tsbuildinfo
|