@sanity/cli 8.14.0 → 8.16.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/dist/actions/init/project/getProjectDetails.js +1 -0
- package/dist/actions/init/project/getProjectDetails.js.map +1 -1
- package/dist/actions/typegen/fetchResourceSchema.js +40 -0
- package/dist/actions/typegen/fetchResourceSchema.js.map +1 -0
- package/dist/actions/typegen/generateResourceTypes.js +115 -0
- package/dist/actions/typegen/generateResourceTypes.js.map +1 -0
- package/dist/actions/typegen/parseTypegenResources.js +92 -0
- package/dist/actions/typegen/parseTypegenResources.js.map +1 -0
- package/dist/commands/typegen/generate.js +59 -5
- package/dist/commands/typegen/generate.js.map +1 -1
- package/dist/generated/apiRoutes.js +2 -0
- package/dist/generated/apiRoutes.js.map +1 -1
- package/dist/server/vite/plugin-typegen.js +10 -0
- package/dist/server/vite/plugin-typegen.js.map +1 -1
- package/dist/services/schemas.js +36 -0
- package/dist/services/schemas.js.map +1 -1
- package/oclif.manifest.json +163 -163
- package/package.json +18 -17
- package/templates/shared/dashboard/app-quickstart/AGENTS.md +1 -1
- package/templates/shared/dashboard/app-quickstart/README.md +1 -1
- package/templates/shared/dashboard/app-sanity-ui/AGENTS.md +1 -1
- package/templates/shared/dashboard/app-sanity-ui/README.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.16.0",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity projects and organizations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -62,25 +62,26 @@
|
|
|
62
62
|
"@oclif/core": "^4.11.14",
|
|
63
63
|
"@oclif/plugin-help": "^6.2.53",
|
|
64
64
|
"@oclif/plugin-not-found": "^3.2.88",
|
|
65
|
-
"@sanity/cli-build": "^6.4.
|
|
66
|
-
"@sanity/cli-core": "^3.
|
|
67
|
-
"@sanity/client": "^8.
|
|
68
|
-
"@sanity/codegen": "^8.
|
|
65
|
+
"@sanity/cli-build": "^6.4.5",
|
|
66
|
+
"@sanity/cli-core": "^3.9.0",
|
|
67
|
+
"@sanity/client": "^8.9.0",
|
|
68
|
+
"@sanity/codegen": "^8.2.0",
|
|
69
69
|
"@sanity/descriptors": "^1.3.0",
|
|
70
70
|
"@sanity/export": "^6.2.1",
|
|
71
71
|
"@sanity/generate-help-url": "^4.0.0",
|
|
72
72
|
"@sanity/id-utils": "^1.1.0",
|
|
73
|
-
"@sanity/import": "^7.0.
|
|
74
|
-
"@sanity/migrate": "^8.0.
|
|
75
|
-
"@sanity/runtime-cli": "17.
|
|
76
|
-
"@sanity/schema": "^6.
|
|
73
|
+
"@sanity/import": "^7.0.4",
|
|
74
|
+
"@sanity/migrate": "^8.0.5",
|
|
75
|
+
"@sanity/runtime-cli": "17.15.0",
|
|
76
|
+
"@sanity/schema": "^6.17.0",
|
|
77
|
+
"@sanity/schema-descriptor-utils": "^1.3.3",
|
|
77
78
|
"@sanity/telemetry": "^1.1.0",
|
|
78
79
|
"@sanity/template-validator": "^3.1.1",
|
|
79
|
-
"@sanity/types": "^6.
|
|
80
|
-
"@sanity/workbench-cli": "^2.8.
|
|
80
|
+
"@sanity/types": "^6.17.0",
|
|
81
|
+
"@sanity/workbench-cli": "^2.8.4",
|
|
81
82
|
"@sanity/worker-channels": "^2.0.0",
|
|
82
|
-
"@sanity/workflow-cli": "0.
|
|
83
|
-
"@sanity/workflow-engine": "0.
|
|
83
|
+
"@sanity/workflow-cli": "0.36.0",
|
|
84
|
+
"@sanity/workflow-engine": "0.36.0",
|
|
84
85
|
"@vercel/frameworks": "3.29.0",
|
|
85
86
|
"chokidar": "^5.0.0",
|
|
86
87
|
"console-table-printer": "^2.15.0",
|
|
@@ -116,7 +117,7 @@
|
|
|
116
117
|
"tinyglobby": "^0.2.17",
|
|
117
118
|
"typeid-js": "^1.2.0",
|
|
118
119
|
"valibot": "^1.4.2",
|
|
119
|
-
"vite": "^8.3.
|
|
120
|
+
"vite": "^8.3.3",
|
|
120
121
|
"which": "^6.0.1",
|
|
121
122
|
"wrap-ansi": "^9.0.2",
|
|
122
123
|
"yaml": "^2.9.0",
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
"@eslint/compat": "^2.1.0",
|
|
127
128
|
"@repo/package.config": "0.0.1",
|
|
128
129
|
"@repo/tsconfig": "3.70.0",
|
|
129
|
-
"@sanity/cli-test": "
|
|
130
|
+
"@sanity/cli-test": "19.0.0",
|
|
130
131
|
"@sanity/eslint-config-cli": "1.1.3",
|
|
131
132
|
"@sanity/pkg-utils": "^12.3.4",
|
|
132
133
|
"@swc/cli": "^0.8.1",
|
|
@@ -147,10 +148,10 @@
|
|
|
147
148
|
"jsdom": "^29.1.1",
|
|
148
149
|
"nock": "^14.0.15",
|
|
149
150
|
"oclif": "^4.23.27",
|
|
150
|
-
"oxc-transform-react": "^0.
|
|
151
|
+
"oxc-transform-react": "^0.153.0",
|
|
151
152
|
"publint": "^0.3.21",
|
|
152
153
|
"rimraf": "^6.0.1",
|
|
153
|
-
"sanity": "^6.
|
|
154
|
+
"sanity": "^6.17.0",
|
|
154
155
|
"tsx": "^4.23.12",
|
|
155
156
|
"typescript": "^6.0.3",
|
|
156
157
|
"vitest": "^4.1.11"
|
|
@@ -15,7 +15,7 @@ The app is set up for the Sanity Dashboard beta: `sanity.cli.ts` declares it wit
|
|
|
15
15
|
|
|
16
16
|
## Commands
|
|
17
17
|
|
|
18
|
-
- `npm run dev`: starts a local Sanity Dashboard on port 3333 and serves the app on the next port (3334), loaded into that Dashboard. The CLI prints the local Dashboard
|
|
18
|
+
- `npm run dev`: starts a local Sanity Dashboard on port 3333 and serves the app on the next port (3334), loaded into that Dashboard. The CLI prints a link that opens the app in the local Dashboard. The app only renders inside the Dashboard, and viewing it requires a signed-in Sanity account, so a human must complete authentication in the browser.
|
|
19
19
|
- `npm run build`: production build.
|
|
20
20
|
- `npm run deploy`: deploy to the organization's Sanity Dashboard.
|
|
21
21
|
|
|
@@ -6,7 +6,7 @@ This app is set up for the Sanity Dashboard beta: `sanity.cli.ts` declares it wi
|
|
|
6
6
|
|
|
7
7
|
## Commands
|
|
8
8
|
|
|
9
|
-
- `npm run dev` starts a local Sanity Dashboard (by default at http://localhost:3333
|
|
9
|
+
- `npm run dev` starts a local Sanity Dashboard (by default at http://localhost:3333) and loads your app into it. Open the link the terminal prints to go straight to your app, and sign in with your Sanity account.
|
|
10
10
|
- `npm run build` builds the app for production.
|
|
11
11
|
- `npm run deploy` deploys the app to your organization's Sanity Dashboard. The first deploy creates the app.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ The app is set up for the Sanity Dashboard beta: `sanity.cli.ts` declares it wit
|
|
|
16
16
|
|
|
17
17
|
## Commands
|
|
18
18
|
|
|
19
|
-
- `npm run dev`: starts a local Sanity Dashboard on port 3333 and serves the app on the next port (3334), loaded into that Dashboard. The CLI prints the local Dashboard
|
|
19
|
+
- `npm run dev`: starts a local Sanity Dashboard on port 3333 and serves the app on the next port (3334), loaded into that Dashboard. The CLI prints a link that opens the app in the local Dashboard. The app only renders inside the Dashboard, and viewing it requires a signed-in Sanity account, so a human must complete authentication in the browser.
|
|
20
20
|
- `npm run build`: production build.
|
|
21
21
|
- `npm run deploy`: deploy to the organization's Sanity Dashboard.
|
|
22
22
|
|
|
@@ -6,7 +6,7 @@ This app is set up for the Sanity Dashboard beta: `sanity.cli.ts` declares it wi
|
|
|
6
6
|
|
|
7
7
|
## Commands
|
|
8
8
|
|
|
9
|
-
- `npm run dev` starts a local Sanity Dashboard (by default at http://localhost:3333
|
|
9
|
+
- `npm run dev` starts a local Sanity Dashboard (by default at http://localhost:3333) and loads your app into it. Open the link the terminal prints to go straight to your app, and sign in with your Sanity account.
|
|
10
10
|
- `npm run build` builds the app for production.
|
|
11
11
|
- `npm run deploy` deploys the app to your organization's Sanity Dashboard. The first deploy creates the app.
|
|
12
12
|
|