@sanity/runtime-cli 2.6.0 → 3.0.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 +15 -15
- package/dist/actions/blueprints/index.d.ts +7 -16
- package/dist/actions/blueprints/index.js +7 -16
- package/dist/actions/functions/env/index.d.ts +2 -6
- package/dist/actions/functions/env/index.js +2 -6
- package/dist/actions/functions/index.d.ts +5 -14
- package/dist/actions/functions/index.js +5 -12
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -4
- package/dist/utils/display/index.d.ts +4 -10
- package/dist/utils/display/index.js +4 -10
- package/dist/utils/index.d.ts +4 -15
- package/dist/utils/index.js +4 -10
- package/dist/utils/vendor/index.d.ts +1 -4
- package/dist/utils/vendor/index.js +1 -4
- package/oclif.manifest.json +1 -1
- package/package.json +20 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g @sanity/runtime-cli
|
|
|
20
20
|
$ sanity-run COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ sanity-run (--version)
|
|
23
|
-
@sanity/runtime-cli/
|
|
23
|
+
@sanity/runtime-cli/3.0.0 linux-x64 node-v22.14.0
|
|
24
24
|
$ sanity-run --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ sanity-run COMMAND
|
|
@@ -63,7 +63,7 @@ EXAMPLES
|
|
|
63
63
|
$ sanity-run blueprints add function
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
_See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
66
|
+
_See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/blueprints/add.ts)_
|
|
67
67
|
|
|
68
68
|
## `sanity-run blueprints config`
|
|
69
69
|
|
|
@@ -85,7 +85,7 @@ EXAMPLES
|
|
|
85
85
|
$ sanity-run blueprints config --edit
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
_See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
88
|
+
_See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/blueprints/config.ts)_
|
|
89
89
|
|
|
90
90
|
## `sanity-run blueprints deploy`
|
|
91
91
|
|
|
@@ -102,7 +102,7 @@ EXAMPLES
|
|
|
102
102
|
$ sanity-run blueprints deploy
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
_See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
105
|
+
_See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/blueprints/deploy.ts)_
|
|
106
106
|
|
|
107
107
|
## `sanity-run blueprints info`
|
|
108
108
|
|
|
@@ -124,7 +124,7 @@ EXAMPLES
|
|
|
124
124
|
$ sanity-run blueprints info --id abc123
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
_See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
127
|
+
_See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/blueprints/info.ts)_
|
|
128
128
|
|
|
129
129
|
## `sanity-run blueprints init`
|
|
130
130
|
|
|
@@ -141,7 +141,7 @@ EXAMPLES
|
|
|
141
141
|
$ sanity-run blueprints init
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
_See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
144
|
+
_See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/blueprints/init.ts)_
|
|
145
145
|
|
|
146
146
|
## `sanity-run blueprints logs`
|
|
147
147
|
|
|
@@ -163,7 +163,7 @@ EXAMPLES
|
|
|
163
163
|
$ sanity-run blueprints logs --watch
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
-
_See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
166
|
+
_See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/blueprints/logs.ts)_
|
|
167
167
|
|
|
168
168
|
## `sanity-run blueprints plan`
|
|
169
169
|
|
|
@@ -180,7 +180,7 @@ EXAMPLES
|
|
|
180
180
|
$ sanity-run blueprints plan
|
|
181
181
|
```
|
|
182
182
|
|
|
183
|
-
_See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
183
|
+
_See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/blueprints/plan.ts)_
|
|
184
184
|
|
|
185
185
|
## `sanity-run blueprints stacks`
|
|
186
186
|
|
|
@@ -197,7 +197,7 @@ EXAMPLES
|
|
|
197
197
|
$ sanity-run blueprints stacks
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
_See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
200
|
+
_See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/blueprints/stacks.ts)_
|
|
201
201
|
|
|
202
202
|
## `sanity-run functions dev`
|
|
203
203
|
|
|
@@ -217,7 +217,7 @@ EXAMPLES
|
|
|
217
217
|
$ sanity-run functions dev --port 8974
|
|
218
218
|
```
|
|
219
219
|
|
|
220
|
-
_See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
220
|
+
_See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/functions/dev.ts)_
|
|
221
221
|
|
|
222
222
|
## `sanity-run functions env add NAME KEY VALUE`
|
|
223
223
|
|
|
@@ -239,7 +239,7 @@ EXAMPLES
|
|
|
239
239
|
$ sanity-run functions env add MyFunction API_URL https://api.example.com/
|
|
240
240
|
```
|
|
241
241
|
|
|
242
|
-
_See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
242
|
+
_See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/functions/env/add.ts)_
|
|
243
243
|
|
|
244
244
|
## `sanity-run functions env remove NAME KEY`
|
|
245
245
|
|
|
@@ -260,7 +260,7 @@ EXAMPLES
|
|
|
260
260
|
$ sanity-run functions env remove MyFunction API_URL
|
|
261
261
|
```
|
|
262
262
|
|
|
263
|
-
_See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
263
|
+
_See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/functions/env/remove.ts)_
|
|
264
264
|
|
|
265
265
|
## `sanity-run functions invoke NAME`
|
|
266
266
|
|
|
@@ -286,7 +286,7 @@ EXAMPLES
|
|
|
286
286
|
$ sanity-run functions invoke <name> --file 'payload.json'
|
|
287
287
|
```
|
|
288
288
|
|
|
289
|
-
_See code: [src/commands/functions/invoke.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
289
|
+
_See code: [src/commands/functions/invoke.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/functions/invoke.ts)_
|
|
290
290
|
|
|
291
291
|
## `sanity-run functions logs NAME`
|
|
292
292
|
|
|
@@ -314,7 +314,7 @@ EXAMPLES
|
|
|
314
314
|
$ sanity-run functions logs <name> --limit 100
|
|
315
315
|
```
|
|
316
316
|
|
|
317
|
-
_See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
317
|
+
_See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/functions/logs.ts)_
|
|
318
318
|
|
|
319
319
|
## `sanity-run functions test NAME`
|
|
320
320
|
|
|
@@ -347,7 +347,7 @@ EXAMPLES
|
|
|
347
347
|
$ sanity-run functions test <name> --data '{ "id": 1 }' --timeout 60
|
|
348
348
|
```
|
|
349
349
|
|
|
350
|
-
_See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
350
|
+
_See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v3.0.0/src/commands/functions/test.ts)_
|
|
351
351
|
|
|
352
352
|
## `sanity-run help [COMMAND]`
|
|
353
353
|
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const blueprintsActions: {
|
|
9
|
-
assets: typeof assets;
|
|
10
|
-
blueprint: typeof blueprint;
|
|
11
|
-
logs: typeof logs;
|
|
12
|
-
operations: typeof operations;
|
|
13
|
-
projects: typeof projects;
|
|
14
|
-
resources: typeof resources;
|
|
15
|
-
stacks: typeof stacks;
|
|
16
|
-
};
|
|
1
|
+
export * as assets from './assets.js';
|
|
2
|
+
export * as blueprint from './blueprint.js';
|
|
3
|
+
export * as logs from './logs.js';
|
|
4
|
+
export * as operations from './operations.js';
|
|
5
|
+
export * as projects from './projects.js';
|
|
6
|
+
export * as resources from './resources.js';
|
|
7
|
+
export * as stacks from './stacks.js';
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export const blueprintsActions = {
|
|
9
|
-
assets,
|
|
10
|
-
blueprint,
|
|
11
|
-
logs,
|
|
12
|
-
operations,
|
|
13
|
-
projects,
|
|
14
|
-
resources,
|
|
15
|
-
stacks,
|
|
16
|
-
};
|
|
1
|
+
export * as assets from './assets.js';
|
|
2
|
+
export * as blueprint from './blueprint.js';
|
|
3
|
+
export * as logs from './logs.js';
|
|
4
|
+
export * as operations from './operations.js';
|
|
5
|
+
export * as projects from './projects.js';
|
|
6
|
+
export * as resources from './resources.js';
|
|
7
|
+
export * as stacks from './stacks.js';
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
dev: typeof dev;
|
|
7
|
-
env: {
|
|
8
|
-
remove: typeof import("./env/remove.js");
|
|
9
|
-
update: typeof import("./env/update.js");
|
|
10
|
-
};
|
|
11
|
-
invoke: typeof invoke;
|
|
12
|
-
logs: typeof logs;
|
|
13
|
-
test: typeof test;
|
|
14
|
-
};
|
|
1
|
+
export * as dev from './dev.js';
|
|
2
|
+
export * as env from './env/index.js';
|
|
3
|
+
export * as invoke from './invoke.js';
|
|
4
|
+
export * as logs from './logs.js';
|
|
5
|
+
export * as test from './test.js';
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const functionsActions = {
|
|
7
|
-
dev,
|
|
8
|
-
env: env.envActions,
|
|
9
|
-
invoke,
|
|
10
|
-
logs,
|
|
11
|
-
test,
|
|
12
|
-
};
|
|
1
|
+
export * as dev from './dev.js';
|
|
2
|
+
export * as env from './env/index.js';
|
|
3
|
+
export * as invoke from './invoke.js';
|
|
4
|
+
export * as logs from './logs.js';
|
|
5
|
+
export * as test from './test.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import { run } from '@oclif/core';
|
|
2
|
-
|
|
3
|
-
import { functionsActions } from './actions/functions/index.js';
|
|
4
|
-
import { utils } from './utils/index.js';
|
|
5
|
-
export { blueprintsActions, functionsActions, utils, run };
|
|
2
|
+
export { run };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import { run } from '@oclif/core';
|
|
2
|
-
|
|
3
|
-
import { functionsActions } from './actions/functions/index.js';
|
|
4
|
-
import { utils } from './utils/index.js';
|
|
5
|
-
export { blueprintsActions, functionsActions, utils, run };
|
|
2
|
+
export { run };
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const display: {
|
|
6
|
-
blueprintsFormatting: typeof blueprintsFormatting;
|
|
7
|
-
logsFormatting: typeof logsFormatting;
|
|
8
|
-
colors: typeof colors;
|
|
9
|
-
dates: typeof dates;
|
|
10
|
-
};
|
|
1
|
+
export * as blueprintsFormatting from './blueprints-formatting.js';
|
|
2
|
+
export * as colors from './colors.js';
|
|
3
|
+
export * as dates from './dates.js';
|
|
4
|
+
export * as logsFormatting from './logs-formatting.js';
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export const display = {
|
|
6
|
-
blueprintsFormatting,
|
|
7
|
-
logsFormatting,
|
|
8
|
-
colors,
|
|
9
|
-
dates,
|
|
10
|
-
};
|
|
1
|
+
export * as blueprintsFormatting from './blueprints-formatting.js';
|
|
2
|
+
export * as colors from './colors.js';
|
|
3
|
+
export * as dates from './dates.js';
|
|
4
|
+
export * as logsFormatting from './logs-formatting.js';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
blueprintsFormatting: typeof import("./display/blueprints-formatting.js");
|
|
6
|
-
logsFormatting: typeof import("./display/logs-formatting.js");
|
|
7
|
-
colors: typeof import("./display/colors.js");
|
|
8
|
-
dates: typeof import("./display/dates.js");
|
|
9
|
-
};
|
|
10
|
-
findFunctions: typeof findFunctions;
|
|
11
|
-
types: typeof types;
|
|
12
|
-
vendor: {
|
|
13
|
-
blueprintParserValidator: typeof import("./vendor/parser-validator.js").blueprintParserValidator;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
1
|
+
export * as display from './display/index.js';
|
|
2
|
+
export * as findFunction from './find-function.js';
|
|
3
|
+
export * as types from './types.js';
|
|
4
|
+
export * as vendor from './vendor/index.js';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export const utils = {
|
|
6
|
-
display,
|
|
7
|
-
findFunctions,
|
|
8
|
-
types,
|
|
9
|
-
vendor,
|
|
10
|
-
};
|
|
1
|
+
export * as display from './display/index.js';
|
|
2
|
+
export * as findFunction from './find-function.js';
|
|
3
|
+
export * as types from './types.js';
|
|
4
|
+
export * as vendor from './vendor/index.js';
|
package/oclif.manifest.json
CHANGED
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": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"author": "Sanity Runtime Team",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
@@ -10,6 +10,24 @@
|
|
|
10
10
|
"homepage": "https://github.com/sanity-io/runtime-cli",
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./actions/blueprints": {
|
|
19
|
+
"types": "./dist/actions/blueprints/index.d.ts",
|
|
20
|
+
"import": "./dist/actions/blueprints/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./actions/functions": {
|
|
23
|
+
"types": "./dist/actions/functions/index.d.ts",
|
|
24
|
+
"import": "./dist/actions/functions/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./utils": {
|
|
27
|
+
"types": "./dist/utils/index.d.ts",
|
|
28
|
+
"import": "./dist/utils/index.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
13
31
|
"engines": {
|
|
14
32
|
"node": ">=18.20.0"
|
|
15
33
|
},
|
|
@@ -35,6 +53,7 @@
|
|
|
35
53
|
"lint:write": "biome check --write",
|
|
36
54
|
"prepack": "oclif manifest && oclif readme",
|
|
37
55
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
56
|
+
"pretest": "cd test/integration && npm install",
|
|
38
57
|
"test": "vitest run",
|
|
39
58
|
"posttest": "npm run lint",
|
|
40
59
|
"test:watch": "vitest"
|