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