@promte/app-upload 0.1.7 → 0.1.8

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.
@@ -222,6 +222,23 @@ async function runPush(args) {
222
222
  console.error(`Upload failed (${res.status}): ${text}`);
223
223
  process.exit(1);
224
224
  }
225
+ let payload = null;
226
+ try {
227
+ payload = JSON.parse(text);
228
+ } catch {
229
+ console.log(text);
230
+ return;
231
+ }
232
+
233
+ if (payload?.ok) {
234
+ console.log("Upload complete ✅");
235
+ console.log(`Workspace: ${payload.workspaceId}`);
236
+ console.log(`Version: ${payload.version}`);
237
+ console.log(`Files: ${payload.filesWritten}`);
238
+ console.log(`Host: ${payload.hostBase}`);
239
+ return;
240
+ }
241
+
225
242
  console.log(text);
226
243
  }
227
244
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promte/app-upload",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "CLI to upload Promte app bundles",
5
5
  "type": "module",
6
6
  "bin": {