@sanity/runtime-cli 11.0.2 → 11.0.3

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 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/11.0.2 linux-x64 node-v24.10.0
23
+ @sanity/runtime-cli/11.0.3 linux-x64 node-v24.10.0
24
24
  $ sanity-run --help [COMMAND]
25
25
  USAGE
26
26
  $ sanity-run COMMAND
@@ -90,7 +90,7 @@ EXAMPLES
90
90
  $ sanity-run blueprints add function --name my-function --fn-type document-create --fn-type document-update --lang js
91
91
  ```
92
92
 
93
- _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/blueprints/add.ts)_
93
+ _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/blueprints/add.ts)_
94
94
 
95
95
  ## `sanity-run blueprints config`
96
96
 
@@ -122,7 +122,7 @@ EXAMPLES
122
122
  $ sanity-run blueprints config --edit --project-id <projectId> --stack-id <stackId>
123
123
  ```
124
124
 
125
- _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/blueprints/config.ts)_
125
+ _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/blueprints/config.ts)_
126
126
 
127
127
  ## `sanity-run blueprints deploy`
128
128
 
@@ -144,7 +144,7 @@ EXAMPLES
144
144
  $ sanity-run blueprints deploy --no-wait
145
145
  ```
146
146
 
147
- _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/blueprints/deploy.ts)_
147
+ _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/blueprints/deploy.ts)_
148
148
 
149
149
  ## `sanity-run blueprints destroy`
150
150
 
@@ -171,7 +171,7 @@ EXAMPLES
171
171
  $ sanity-run blueprints destroy --stack-id <stackId> --project-id <projectId> --force --no-wait
172
172
  ```
173
173
 
174
- _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/blueprints/destroy.ts)_
174
+ _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/blueprints/destroy.ts)_
175
175
 
176
176
  ## `sanity-run blueprints doctor`
177
177
 
@@ -189,7 +189,7 @@ DESCRIPTION
189
189
  Diagnose potential issues with Blueprint configuration
190
190
  ```
191
191
 
192
- _See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/blueprints/doctor.ts)_
192
+ _See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/blueprints/doctor.ts)_
193
193
 
194
194
  ## `sanity-run blueprints info`
195
195
 
@@ -211,7 +211,7 @@ EXAMPLES
211
211
  $ sanity-run blueprints info --stack-id <stackId>
212
212
  ```
213
213
 
214
- _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/blueprints/info.ts)_
214
+ _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/blueprints/info.ts)_
215
215
 
216
216
  ## `sanity-run blueprints init [DIR]`
217
217
 
@@ -250,7 +250,7 @@ EXAMPLES
250
250
  $ sanity-run blueprints init --blueprint-type <json|js|ts> --stack-name <stackName>
251
251
  ```
252
252
 
253
- _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/blueprints/init.ts)_
253
+ _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/blueprints/init.ts)_
254
254
 
255
255
  ## `sanity-run blueprints logs`
256
256
 
@@ -272,7 +272,7 @@ EXAMPLES
272
272
  $ sanity-run blueprints logs --watch
273
273
  ```
274
274
 
275
- _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/blueprints/logs.ts)_
275
+ _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/blueprints/logs.ts)_
276
276
 
277
277
  ## `sanity-run blueprints plan`
278
278
 
@@ -289,7 +289,7 @@ EXAMPLES
289
289
  $ sanity-run blueprints plan
290
290
  ```
291
291
 
292
- _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/blueprints/plan.ts)_
292
+ _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/blueprints/plan.ts)_
293
293
 
294
294
  ## `sanity-run blueprints stacks`
295
295
 
@@ -314,7 +314,7 @@ EXAMPLES
314
314
  $ sanity-run blueprints stacks --organization-id <organizationId>
315
315
  ```
316
316
 
317
- _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/blueprints/stacks.ts)_
317
+ _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/blueprints/stacks.ts)_
318
318
 
319
319
  ## `sanity-run functions add`
320
320
 
@@ -355,7 +355,7 @@ EXAMPLES
355
355
  $ sanity-run functions add --name my-function --type document-create --type document-update --lang js
356
356
  ```
357
357
 
358
- _See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/functions/add.ts)_
358
+ _See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/functions/add.ts)_
359
359
 
360
360
  ## `sanity-run functions dev`
361
361
 
@@ -377,7 +377,7 @@ EXAMPLES
377
377
  $ sanity-run functions dev --port 8974
378
378
  ```
379
379
 
380
- _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/functions/dev.ts)_
380
+ _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/functions/dev.ts)_
381
381
 
382
382
  ## `sanity-run functions env add NAME KEY VALUE`
383
383
 
@@ -399,7 +399,7 @@ EXAMPLES
399
399
  $ sanity-run functions env add MyFunction API_URL https://api.example.com/
400
400
  ```
401
401
 
402
- _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/functions/env/add.ts)_
402
+ _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/functions/env/add.ts)_
403
403
 
404
404
  ## `sanity-run functions env list NAME`
405
405
 
@@ -419,7 +419,7 @@ EXAMPLES
419
419
  $ sanity-run functions env list MyFunction
420
420
  ```
421
421
 
422
- _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/functions/env/list.ts)_
422
+ _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/functions/env/list.ts)_
423
423
 
424
424
  ## `sanity-run functions env remove NAME KEY`
425
425
 
@@ -440,7 +440,7 @@ EXAMPLES
440
440
  $ sanity-run functions env remove MyFunction API_URL
441
441
  ```
442
442
 
443
- _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/functions/env/remove.ts)_
443
+ _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/functions/env/remove.ts)_
444
444
 
445
445
  ## `sanity-run functions logs NAME`
446
446
 
@@ -474,7 +474,7 @@ EXAMPLES
474
474
  $ sanity-run functions logs <name> --delete
475
475
  ```
476
476
 
477
- _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/functions/logs.ts)_
477
+ _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/functions/logs.ts)_
478
478
 
479
479
  ## `sanity-run functions test NAME`
480
480
 
@@ -522,7 +522,7 @@ EXAMPLES
522
522
  $ sanity-run functions test <name> --event update --data-before '{ "title": "before" }' --data-after '{ "title": "after" }'
523
523
  ```
524
524
 
525
- _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.2/src/commands/functions/test.ts)_
525
+ _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v11.0.3/src/commands/functions/test.ts)_
526
526
 
527
527
  ## `sanity-run help [COMMAND]`
528
528
 
@@ -73,7 +73,7 @@ export default class AddCommand extends BlueprintCommand {
73
73
  }),
74
74
  };
75
75
  async run() {
76
- const { blueprint, log, flags, args: { type: resourceType }, config: { bin }, } = this;
76
+ const { blueprint, flags, args: { type: resourceType }, config: { bin }, } = this;
77
77
  if (resourceType !== 'function') {
78
78
  this.error(`Unsupported Resource type: ${resourceType}`);
79
79
  }
@@ -84,7 +84,7 @@ export default class AddCommand extends BlueprintCommand {
84
84
  // )
85
85
  const { success, error } = await functionAddCore({
86
86
  bin,
87
- log: (msg) => log(msg),
87
+ log: (msg) => this.log(msg),
88
88
  blueprint,
89
89
  flags: {
90
90
  example: flags.example,
@@ -1387,5 +1387,5 @@
1387
1387
  ]
1388
1388
  }
1389
1389
  },
1390
- "version": "11.0.2"
1390
+ "version": "11.0.3"
1391
1391
  }
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": "11.0.2",
4
+ "version": "11.0.3",
5
5
  "author": "Sanity Runtime Team",
6
6
  "type": "module",
7
7
  "license": "MIT",