@schnebel-crm/cli 0.1.5 → 0.1.6

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +4 -4
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -446,13 +446,13 @@ const deployCommand = new Command("deploy").description("Deploy the integration
446
446
  } })
447
447
  });
448
448
  if (!res.ok) {
449
- const body = await res.text();
450
- log.error(`Deploy failed (${res.status}): ${body}`);
449
+ const body$1 = await res.text();
450
+ log.error(`Deploy failed (${res.status}): ${body$1}`);
451
451
  process.exit(1);
452
452
  }
453
- const result = await res.json();
453
+ const body = await res.json();
454
454
  log.success(`Deployed ${manifestData.name}@${manifestData.version} to your workspace`);
455
- log.info(`Integration ID: ${result.result.id}`);
455
+ if (body.json?.id) log.info(`Integration ID: ${body.json.id}`);
456
456
  } catch (err) {
457
457
  log.error(`Deploy failed: ${err instanceof Error ? err.message : String(err)}`);
458
458
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schnebel-crm/cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "CLI for building and deploying Schnebel CRM integrations",
6
6
  "main": "./dist/cli.mjs",