@promte/app-upload 0.1.7 → 0.1.9
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/bin/promte-app-upload.js +16 -0
- package/package.json +1 -1
package/bin/promte-app-upload.js
CHANGED
|
@@ -222,6 +222,22 @@ 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
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
|
|
225
241
|
console.log(text);
|
|
226
242
|
}
|
|
227
243
|
|