@sanity/runtime-cli 17.1.0 → 17.2.0-next.ga4b9ae7
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 +23 -22
- package/dist/actions/blueprints/assets.d.ts +2 -1
- package/dist/actions/blueprints/assets.js +17 -26
- package/dist/actions/blueprints/blueprint.d.ts +1 -1
- package/dist/actions/blueprints/pre-deploy.d.ts +29 -0
- package/dist/actions/blueprints/pre-deploy.js +164 -0
- package/dist/actions/blueprints/wait-for-operation.js +4 -0
- package/dist/actions/sanity/examples.d.ts +4 -4
- package/dist/baseCommands.d.ts +4 -4
- package/dist/commands/blueprints/add.d.ts +1 -1
- package/dist/commands/blueprints/config.d.ts +1 -1
- package/dist/commands/blueprints/deploy.d.ts +1 -1
- package/dist/commands/blueprints/destroy.d.ts +1 -1
- package/dist/commands/blueprints/doctor.d.ts +0 -1
- package/dist/commands/blueprints/doctor.js +3 -7
- package/dist/commands/blueprints/info.d.ts +1 -1
- package/dist/commands/blueprints/logs.d.ts +1 -1
- package/dist/commands/blueprints/mint-deploy-token.d.ts +1 -1
- package/dist/commands/blueprints/plan.d.ts +1 -1
- package/dist/commands/blueprints/promote.d.ts +1 -1
- package/dist/commands/blueprints/stacks.d.ts +1 -1
- package/dist/commands/functions/add.d.ts +1 -1
- package/dist/commands/functions/build.d.ts +1 -1
- package/dist/commands/functions/dev.d.ts +1 -1
- package/dist/commands/functions/env/add.d.ts +1 -1
- package/dist/commands/functions/env/list.d.ts +1 -1
- package/dist/commands/functions/env/remove.d.ts +1 -1
- package/dist/commands/functions/logs.d.ts +1 -1
- package/dist/commands/functions/test.d.ts +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/cores/blueprints/deploy.js +18 -65
- package/dist/cores/blueprints/doctor.js +15 -12
- package/dist/cores/functions/build.js +3 -2
- package/dist/cores/functions/test.js +4 -2
- package/dist/server/app.js +8 -2
- package/dist/server/static/favicon-dark.svg +1 -0
- package/dist/server/static/favicon.svg +1 -0
- package/dist/server/static/index.html +1 -1
- package/dist/server/static/vendor/vendor.bundle.js +5 -0
- package/dist/utils/functions/child-process-wrapper.js +13 -171
- package/dist/utils/functions/child-runtime/console.d.ts +1 -0
- package/dist/utils/functions/child-runtime/console.js +50 -0
- package/dist/utils/functions/child-runtime/invoke.d.ts +4 -0
- package/dist/utils/functions/child-runtime/invoke.js +47 -0
- package/dist/utils/functions/child-runtime/resources.d.ts +4 -0
- package/dist/utils/functions/child-runtime/resources.js +59 -0
- package/dist/utils/functions/find-entry-point.d.ts +1 -1
- package/dist/utils/functions/find-entry-point.js +10 -12
- package/dist/utils/functions/invoke/local.js +1 -1
- package/dist/utils/functions/invoke/prepare.d.ts +1 -1
- package/dist/utils/functions/invoke/prepare.js +19 -8
- package/dist/utils/functions/package-json.d.ts +1 -2
- package/dist/utils/functions/package-json.js +4 -6
- package/dist/utils/functions/prepare-asset.d.ts +2 -2
- package/dist/utils/functions/prepare-asset.js +18 -7
- package/dist/utils/functions/resolve-dependencies.d.ts +4 -1
- package/dist/utils/functions/resolve-dependencies.js +5 -6
- package/dist/utils/functions/resource-to-arc.d.ts +1 -1
- package/dist/utils/functions/resource-to-arc.js +4 -5
- package/dist/utils/functions/should-transpile.d.ts +7 -1
- package/dist/utils/functions/should-transpile.js +10 -10
- package/dist/utils/functions/transpile/function.d.ts +4 -1
- package/dist/utils/functions/transpile/function.js +9 -14
- package/dist/utils/functions/transpile/verify-handler.js +1 -1
- package/dist/utils/logger.d.ts +7 -5
- package/dist/utils/logger.js +33 -1
- package/dist/utils/progress.d.ts +5 -0
- package/dist/utils/progress.js +40 -0
- package/dist/utils/studios/prepare-asset.d.ts +6 -0
- package/dist/utils/studios/prepare-asset.js +139 -0
- package/dist/utils/types.d.ts +9 -8
- package/dist/utils/types.js +2 -3
- package/oclif.manifest.json +896 -895
- package/package.json +30 -23
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/runtime-cli",
|
|
3
3
|
"description": "Sanity's Runtime CLI for Blueprints and Functions",
|
|
4
|
-
"version": "17.
|
|
4
|
+
"version": "17.2.0-next.ga4b9ae7",
|
|
5
5
|
"author": "Sanity Runtime Team",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
@@ -40,7 +40,9 @@
|
|
|
40
40
|
"clean": "shx rm -rf dist oclif.manifest.json",
|
|
41
41
|
"copy:design-tokens": "shx rm -rf ./src/server/static/vendor/design-tokens && shx cp -r ./node_modules/@sanity-labs/design-tokens/dist/css ./src/server/static/vendor/design-tokens",
|
|
42
42
|
"copy:server": "shx cp -r ./src/server/static ./dist/server",
|
|
43
|
-
"copy:wrapper": "
|
|
43
|
+
"copy:wrapper": "npm run copy:wrapper:entry && npm run copy:wrapper:modules",
|
|
44
|
+
"copy:wrapper:entry": "shx cp ./src/utils/functions/child-process-wrapper.js ./dist/utils/functions/child-process-wrapper.js",
|
|
45
|
+
"copy:wrapper:modules": "shx rm -rf ./dist/utils/functions/child-runtime && shx cp -r ./src/utils/functions/child-runtime ./dist/utils/functions/child-runtime",
|
|
44
46
|
"lint": "biome ci",
|
|
45
47
|
"lint:write": "biome check --write",
|
|
46
48
|
"lint:fix": "npm run lint:write",
|
|
@@ -59,55 +61,60 @@
|
|
|
59
61
|
},
|
|
60
62
|
"dependencies": {
|
|
61
63
|
"@architect/hydrate": "~6.0.2",
|
|
62
|
-
"@architect/inventory": "~6.
|
|
64
|
+
"@architect/inventory": "~6.1.0",
|
|
63
65
|
"@inquirer/prompts": "^8.5.2",
|
|
64
|
-
"@oclif/core": "^4.11.
|
|
65
|
-
"@oclif/plugin-help": "^6.2.
|
|
66
|
+
"@oclif/core": "^4.11.14",
|
|
67
|
+
"@oclif/plugin-help": "^6.2.53",
|
|
66
68
|
"@sanity-labs/design-tokens": "^0.0.2-alpha.2",
|
|
67
|
-
"@sanity/blueprints": "^0.
|
|
69
|
+
"@sanity/blueprints": "^0.23.0",
|
|
68
70
|
"@sanity/blueprints-parser": "^0.4.0",
|
|
69
|
-
"@sanity/
|
|
70
|
-
"
|
|
71
|
+
"@sanity/cli-build": "^5.0.0",
|
|
72
|
+
"@sanity/cli-core": "^2.5.1",
|
|
73
|
+
"@sanity/client": "^7.23.1",
|
|
74
|
+
"adm-zip": "^0.6.0",
|
|
71
75
|
"array-treeify": "^0.1.5",
|
|
72
76
|
"cardinal": "^2.1.1",
|
|
73
77
|
"empathic": "^2.0.1",
|
|
74
78
|
"eventsource": "^4.1.0",
|
|
75
|
-
"groq-js": "^1.30.
|
|
79
|
+
"groq-js": "^1.30.3",
|
|
76
80
|
"jiti": "^2.7.0",
|
|
77
81
|
"mime-types": "^3.0.2",
|
|
78
|
-
"ora": "^9.4.
|
|
82
|
+
"ora": "^9.4.1",
|
|
83
|
+
"signal-exit": "^4.1.0",
|
|
84
|
+
"strip-ansi": "^7.2.0",
|
|
85
|
+
"tar-fs": "^3.1.3",
|
|
79
86
|
"tar-stream": "^3.2.0",
|
|
80
|
-
"vite": "^8.
|
|
81
|
-
"ws": "^8.21.
|
|
87
|
+
"vite": "^8.1.4",
|
|
88
|
+
"ws": "^8.21.1",
|
|
82
89
|
"xdg-basedir": "^5.1.0"
|
|
83
90
|
},
|
|
84
91
|
"devDependencies": {
|
|
85
|
-
"@biomejs/biome": "2.
|
|
92
|
+
"@biomejs/biome": "2.5.3",
|
|
86
93
|
"@codemirror/lang-json": "^6.0.2",
|
|
87
|
-
"@codemirror/state": "^6.
|
|
94
|
+
"@codemirror/state": "^6.7.1",
|
|
88
95
|
"@enhance/store": "^1.0.2",
|
|
89
96
|
"@lezer/highlight": "^1.2.3",
|
|
90
|
-
"@oclif/test": "^4.1.
|
|
91
|
-
"@playwright/test": "^1.
|
|
97
|
+
"@oclif/test": "^4.1.20",
|
|
98
|
+
"@playwright/test": "^1.61.1",
|
|
92
99
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
93
|
-
"@sanity/functions": "^1.
|
|
100
|
+
"@sanity/functions": "^1.4.0",
|
|
94
101
|
"@types/adm-zip": "^0.5.8",
|
|
95
102
|
"@types/cardinal": "^2.1.1",
|
|
96
103
|
"@types/mime-types": "^3.0.1",
|
|
97
104
|
"@types/node": "^22",
|
|
105
|
+
"@types/tar-fs": "^2.0.4",
|
|
98
106
|
"@types/tar-stream": "^3.1.4",
|
|
99
107
|
"@types/ws": "^8.18.1",
|
|
100
|
-
"@vitest/coverage-v8": "4.1.
|
|
108
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
101
109
|
"codemirror": "^6.0.2",
|
|
102
110
|
"mentoss": "^0.13.0",
|
|
103
|
-
"oclif": "^4.23.
|
|
111
|
+
"oclif": "^4.23.27",
|
|
104
112
|
"pretty-bytes": "^7.1.0",
|
|
105
113
|
"pretty-ms": "^9.3.0",
|
|
106
|
-
"rollup": "^4.
|
|
114
|
+
"rollup": "^4.62.2",
|
|
107
115
|
"shx": "^0.4.0",
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"vitest": "4.1.9"
|
|
116
|
+
"typescript": "^7.0.2",
|
|
117
|
+
"vitest": "4.1.10"
|
|
111
118
|
},
|
|
112
119
|
"oclif": {
|
|
113
120
|
"bin": "sanity-run",
|