@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/package.json
CHANGED
package/src/push.ts
CHANGED
|
@@ -17,6 +17,8 @@ export const YAML_OR_JS_FILES = /^(.*)\.(cube|sc)\.(ya?ml|js)$/;
|
|
|
17
17
|
|
|
18
18
|
let ora: any;
|
|
19
19
|
export default async () => {
|
|
20
|
+
let spinnerPushing;
|
|
21
|
+
|
|
20
22
|
try {
|
|
21
23
|
checkNodeVersion();
|
|
22
24
|
ora = (await oraP).default;
|
|
@@ -37,7 +39,7 @@ export default async () => {
|
|
|
37
39
|
await archive(config, filesList);
|
|
38
40
|
spinnerArchive.succeed("Bundling completed");
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
spinnerPushing = ora(
|
|
41
43
|
`Publishing to ${workspaceName} using ${config.pushBaseUrl}...`,
|
|
42
44
|
).start();
|
|
43
45
|
|
|
@@ -46,9 +48,10 @@ export default async () => {
|
|
|
46
48
|
`Published to ${workspaceName} using ${config.pushBaseUrl}`,
|
|
47
49
|
);
|
|
48
50
|
} catch (error: any) {
|
|
49
|
-
|
|
51
|
+
spinnerPushing?.fail("Publishing failed");
|
|
52
|
+
console.error(error.response?.data || error?.message || error);
|
|
50
53
|
await reportErrorToRollbar(error);
|
|
51
|
-
|
|
54
|
+
process.exit(1);
|
|
52
55
|
}
|
|
53
56
|
};
|
|
54
57
|
|