@embeddable.com/sdk-core 3.12.4-next.0 → 3.12.4-next.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "3.12.4-next.0",
3
+ "version": "3.12.4-next.1",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "license": "MIT",
40
40
  "dependencies": {
41
- "@embeddable.com/sdk-utils": "0.6.1",
41
+ "@embeddable.com/sdk-utils": "0.6.2-next.0",
42
42
  "@inquirer/prompts": "^7.2.1",
43
43
  "@stencil/core": "^4.23.0",
44
44
  "@swc-node/register": "^1.10.9",
package/src/dev.ts CHANGED
@@ -32,6 +32,7 @@ const minimist = require("minimist");
32
32
  import { initLogger, logError } from "./logger";
33
33
  import fg from "fast-glob";
34
34
  import * as dotenv from "dotenv";
35
+ import { pathToFileURL } from "node:url";
35
36
 
36
37
  dotenv.config();
37
38
 
@@ -325,11 +326,14 @@ const sendDataModelsAndContextsChanges = async (ctx: any) => {
325
326
  PRESET_FILES,
326
327
  );
327
328
 
328
- const filesList = [...cubeFilesList, ...contextFilesList];
329
+ // Map the files to include their full filenames
330
+ const filesList = [...cubeFilesList, ...contextFilesList].map(
331
+ (entry): [string, string] => [path.basename(entry[1]), entry[1]],
332
+ );
329
333
 
330
334
  // add manifest to the archive
331
335
  filesList.push([
332
- "embeddable-manifest",
336
+ "embeddable-manifest.json",
333
337
  path.resolve(ctx.client.buildDir, "embeddable-manifest.json"),
334
338
  ]);
335
339
 
package/src/push.ts CHANGED
@@ -148,7 +148,12 @@ async function buildArchive(config: any) {
148
148
  PRESET_FILES,
149
149
  );
150
150
 
151
- await archive(config, [...cubeFilesList, ...contextFilesList]);
151
+ // Map the files to include their full filenames
152
+ const filesList = [...cubeFilesList, ...contextFilesList].map(
153
+ (entry): [string, string] => [path.basename(entry[1]), entry[1]],
154
+ );
155
+
156
+ await archive(config, filesList);
152
157
  return spinnerArchive.succeed("Bundling completed");
153
158
  }
154
159
 
@@ -172,10 +177,8 @@ export async function archive(
172
177
  }
173
178
 
174
179
  for (const fileData of yamlFiles) {
175
- const fileName = fileData[1].split("/").pop();
176
-
177
180
  _archiver.file(fileData[1], {
178
- name: fileName!,
181
+ name: fileData[0],
179
182
  });
180
183
  }
181
184