@embeddable.com/sdk-core 3.13.3 → 3.13.4-next.0

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/push.d.ts CHANGED
@@ -15,7 +15,8 @@ export declare function sendBuildByApiKey(ctx: ResolvedEmbeddableConfig, { apiKe
15
15
  email: string;
16
16
  message?: string;
17
17
  }): Promise<any>;
18
- export declare function sendBuild(ctx: ResolvedEmbeddableConfig, { workspaceId, token }: {
18
+ export declare function sendBuild(ctx: ResolvedEmbeddableConfig, { workspaceId, token, message, }: {
19
19
  workspaceId: string;
20
20
  token: string;
21
+ message?: string;
21
22
  }): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "3.13.3",
3
+ "version": "3.13.4-next.0",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
package/src/push.ts CHANGED
@@ -64,6 +64,7 @@ export default async () => {
64
64
  );
65
65
 
66
66
  const workspacePreviewUrl = `${config.previewBaseUrl}/workspace/${workspaceId}`;
67
+ const message = getArgumentByKey(["--message", "-m"]);
67
68
 
68
69
  breadcrumbs.push("build archive");
69
70
  await buildArchive(config);
@@ -72,7 +73,7 @@ export default async () => {
72
73
  );
73
74
 
74
75
  breadcrumbs.push("send build");
75
- await sendBuild(config, { workspaceId, token });
76
+ await sendBuild(config, { workspaceId, token, message });
76
77
  spinnerPushing.succeed(
77
78
  `Published to ${workspaceName} using ${workspacePreviewUrl}`,
78
79
  );
@@ -253,13 +254,17 @@ export async function sendBuildByApiKey(
253
254
 
254
255
  export async function sendBuild(
255
256
  ctx: ResolvedEmbeddableConfig,
256
- { workspaceId, token }: { workspaceId: string; token: string },
257
+ {
258
+ workspaceId,
259
+ token,
260
+ message,
261
+ }: { workspaceId: string; token: string; message?: string },
257
262
  ) {
258
263
  const form = await createFormData(ctx.client.archiveFile, {
259
264
  pushModels: ctx.pushModels,
260
265
  pushComponents: ctx.pushComponents,
261
266
  authorEmail: "",
262
- description: "",
267
+ description: message,
263
268
  });
264
269
 
265
270
  await uploadFile(