@sanity/runtime-cli 1.4.0 → 1.4.1

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 COMMAND
21
21
  running command...
22
22
  $ sanity (--version)
23
- @sanity/runtime-cli/1.4.0 linux-x64 node-v22.14.0
23
+ @sanity/runtime-cli/1.4.1 linux-x64 node-v22.14.0
24
24
  $ sanity --help [COMMAND]
25
25
  USAGE
26
26
  $ sanity COMMAND
@@ -64,7 +64,7 @@ EXAMPLES
64
64
  $ sanity blueprints deploy
65
65
  ```
66
66
 
67
- _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.0/src/commands/blueprints/deploy.ts)_
67
+ _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.1/src/commands/blueprints/deploy.ts)_
68
68
 
69
69
  ## `sanity blueprints info`
70
70
 
@@ -81,7 +81,7 @@ EXAMPLES
81
81
  $ sanity blueprints info
82
82
  ```
83
83
 
84
- _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.0/src/commands/blueprints/info.ts)_
84
+ _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.1/src/commands/blueprints/info.ts)_
85
85
 
86
86
  ## `sanity blueprints logs`
87
87
 
@@ -103,7 +103,7 @@ EXAMPLES
103
103
  $ sanity blueprints logs --watch
104
104
  ```
105
105
 
106
- _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.0/src/commands/blueprints/logs.ts)_
106
+ _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.1/src/commands/blueprints/logs.ts)_
107
107
 
108
108
  ## `sanity blueprints plan`
109
109
 
@@ -120,7 +120,7 @@ EXAMPLES
120
120
  $ sanity blueprints plan
121
121
  ```
122
122
 
123
- _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.0/src/commands/blueprints/plan.ts)_
123
+ _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.1/src/commands/blueprints/plan.ts)_
124
124
 
125
125
  ## `sanity functions dev`
126
126
 
@@ -140,7 +140,7 @@ EXAMPLES
140
140
  $ sanity functions dev --port 8974
141
141
  ```
142
142
 
143
- _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.0/src/commands/functions/dev.ts)_
143
+ _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.1/src/commands/functions/dev.ts)_
144
144
 
145
145
  ## `sanity functions invoke ID`
146
146
 
@@ -166,7 +166,7 @@ EXAMPLES
166
166
  $ sanity functions invoke <ID> --file 'payload.json'
167
167
  ```
168
168
 
169
- _See code: [src/commands/functions/invoke.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.0/src/commands/functions/invoke.ts)_
169
+ _See code: [src/commands/functions/invoke.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.1/src/commands/functions/invoke.ts)_
170
170
 
171
171
  ## `sanity functions logs ID`
172
172
 
@@ -186,7 +186,7 @@ EXAMPLES
186
186
  $ sanity functions logs <ID>
187
187
  ```
188
188
 
189
- _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.0/src/commands/functions/logs.ts)_
189
+ _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.1/src/commands/functions/logs.ts)_
190
190
 
191
191
  ## `sanity functions test PATH`
192
192
 
@@ -215,7 +215,7 @@ EXAMPLES
215
215
  $ sanity functions test ./test.ts --data '{ "id": 1 }' --timeout 60
216
216
  ```
217
217
 
218
- _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.0/src/commands/functions/test.ts)_
218
+ _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v1.4.1/src/commands/functions/test.ts)_
219
219
 
220
220
  ## `sanity help [COMMAND]`
221
221
 
@@ -18,8 +18,8 @@ export function formatResourceTree(resources, logger) {
18
18
  return;
19
19
  }
20
20
  logger(`${blue('Stack Resources')} [${resources.length}]`);
21
- const functionResources = resources.filter((r) => r.type.startsWith('sanity.function.'));
22
- const otherResources = resources.filter((r) => !r.type.startsWith('sanity.function.'));
21
+ const functionResources = resources.filter((r) => r.type?.startsWith('sanity.function.') || r.kind === 'function');
22
+ const otherResources = resources.filter((r) => !r.type?.startsWith('sanity.function.') && r.kind !== 'function');
23
23
  const hasOtherResources = otherResources.length > 0;
24
24
  if (functionResources.length > 0) {
25
25
  logger(` ${hasOtherResources ? '├─' : '└─'} ${bold('Functions')} [${functionResources.length}]`);
@@ -281,5 +281,5 @@
281
281
  ]
282
282
  }
283
283
  },
284
- "version": "1.4.0"
284
+ "version": "1.4.1"
285
285
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sanity/runtime-cli",
3
3
  "description": "A new CLI generated with oclif",
4
- "version": "1.4.0",
4
+ "version": "1.4.1",
5
5
  "author": "Sanity Runtime Team",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -60,11 +60,11 @@
60
60
  "oclif": "^4",
61
61
  "pretty-bytes": "^6.1.1",
62
62
  "pretty-ms": "^9.2.0",
63
- "rollup": "^4.35.0",
64
- "shx": "^0.3.4",
63
+ "rollup": "^4.36.0",
64
+ "shx": "^0.4.0",
65
65
  "ts-node": "^10",
66
66
  "typescript": "^5",
67
- "vitest": "^3.0.8"
67
+ "vitest": "3.0.8"
68
68
  },
69
69
  "oclif": {
70
70
  "bin": "sanity",