@embeddable.com/sdk-core 3.1.2-next.0 → 3.1.2

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/lib/index.esm.js CHANGED
@@ -20080,6 +20080,8 @@ const inquirerSelect = import('@inquirer/select');
20080
20080
  const YAML_OR_JS_FILES = /^(.*)\.(cube|sc)\.(ya?ml|js)$/;
20081
20081
  let ora$1;
20082
20082
  var push = async () => {
20083
+ var _a;
20084
+ let spinnerPushing;
20083
20085
  try {
20084
20086
  checkNodeVersion();
20085
20087
  ora$1 = (await oraP$1).default;
@@ -20090,14 +20092,15 @@ var push = async () => {
20090
20092
  const filesList = await findFiles(config.client.srcDir, YAML_OR_JS_FILES);
20091
20093
  await archive(config, filesList);
20092
20094
  spinnerArchive.succeed("Bundling completed");
20093
- const spinnerPushing = ora$1(`Publishing to ${workspaceName} using ${config.pushBaseUrl}...`).start();
20095
+ spinnerPushing = ora$1(`Publishing to ${workspaceName} using ${config.pushBaseUrl}...`).start();
20094
20096
  await sendBuild(config, { workspaceId, token });
20095
20097
  spinnerPushing.succeed(`Published to ${workspaceName} using ${config.pushBaseUrl}`);
20096
20098
  }
20097
20099
  catch (error) {
20098
- console.log(error);
20100
+ spinnerPushing === null || spinnerPushing === void 0 ? void 0 : spinnerPushing.fail("Publishing failed");
20101
+ console.error(((_a = error.response) === null || _a === void 0 ? void 0 : _a.data) || (error === null || error === void 0 ? void 0 : error.message) || error);
20099
20102
  await reportErrorToRollbar(error);
20100
- throw error;
20103
+ process.exit(1);
20101
20104
  }
20102
20105
  };
20103
20106
  async function selectWorkspace(ctx, token) {