@embeddable.com/sdk-core 3.1.1 → 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 +6 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +6 -3
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/push.ts +6 -3
package/lib/index.js
CHANGED
|
@@ -20107,6 +20107,8 @@ const inquirerSelect = import('@inquirer/select');
|
|
|
20107
20107
|
const YAML_OR_JS_FILES = /^(.*)\.(cube|sc)\.(ya?ml|js)$/;
|
|
20108
20108
|
let ora$1;
|
|
20109
20109
|
var push = async () => {
|
|
20110
|
+
var _a;
|
|
20111
|
+
let spinnerPushing;
|
|
20110
20112
|
try {
|
|
20111
20113
|
checkNodeVersion();
|
|
20112
20114
|
ora$1 = (await oraP$1).default;
|
|
@@ -20117,14 +20119,15 @@ var push = async () => {
|
|
|
20117
20119
|
const filesList = await findFiles(config.client.srcDir, YAML_OR_JS_FILES);
|
|
20118
20120
|
await archive(config, filesList);
|
|
20119
20121
|
spinnerArchive.succeed("Bundling completed");
|
|
20120
|
-
|
|
20122
|
+
spinnerPushing = ora$1(`Publishing to ${workspaceName} using ${config.pushBaseUrl}...`).start();
|
|
20121
20123
|
await sendBuild(config, { workspaceId, token });
|
|
20122
20124
|
spinnerPushing.succeed(`Published to ${workspaceName} using ${config.pushBaseUrl}`);
|
|
20123
20125
|
}
|
|
20124
20126
|
catch (error) {
|
|
20125
|
-
|
|
20127
|
+
spinnerPushing === null || spinnerPushing === void 0 ? void 0 : spinnerPushing.fail("Publishing failed");
|
|
20128
|
+
console.error(((_a = error.response) === null || _a === void 0 ? void 0 : _a.data) || (error === null || error === void 0 ? void 0 : error.message) || error);
|
|
20126
20129
|
await reportErrorToRollbar(error);
|
|
20127
|
-
|
|
20130
|
+
process.exit(1);
|
|
20128
20131
|
}
|
|
20129
20132
|
};
|
|
20130
20133
|
async function selectWorkspace(ctx, token) {
|