@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/lib/index.esm.js CHANGED
@@ -21607,7 +21607,9 @@ async function buildArchive(config) {
21607
21607
  const spinnerArchive = ora$1("Building...").start();
21608
21608
  const cubeFilesList = await findFiles(config.client.modelsSrc || config.client.srcDir, CUBE_FILES);
21609
21609
  const contextFilesList = await findFiles(config.client.presetsSrc || config.client.srcDir, PRESET_FILES);
21610
- await archive(config, [...cubeFilesList, ...contextFilesList]);
21610
+ // Map the files to include their full filenames
21611
+ const filesList = [...cubeFilesList, ...contextFilesList].map((entry) => [path$1.basename(entry[1]), entry[1]]);
21612
+ await archive(config, filesList);
21611
21613
  return spinnerArchive.succeed("Bundling completed");
21612
21614
  }
21613
21615
  async function archive(ctx, yamlFiles, isDev = false) {
@@ -21623,9 +21625,8 @@ async function archive(ctx, yamlFiles, isDev = false) {
21623
21625
  });
21624
21626
  }
21625
21627
  for (const fileData of yamlFiles) {
21626
- const fileName = fileData[1].split("/").pop();
21627
21628
  _archiver.file(fileData[1], {
21628
- name: fileName,
21629
+ name: fileData[0],
21629
21630
  });
21630
21631
  }
21631
21632
  await _archiver.finalize();
@@ -21886,10 +21887,11 @@ const sendDataModelsAndContextsChanges = async (ctx) => {
21886
21887
  const sending = ora("Synchronising data models and/or security contexts...").start();
21887
21888
  const cubeFilesList = await findFiles(ctx.client.modelsSrc, CUBE_FILES);
21888
21889
  const contextFilesList = await findFiles(ctx.client.presetsSrc, PRESET_FILES);
21889
- const filesList = [...cubeFilesList, ...contextFilesList];
21890
+ // Map the files to include their full filenames
21891
+ const filesList = [...cubeFilesList, ...contextFilesList].map((entry) => [path$1.basename(entry[1]), entry[1]]);
21890
21892
  // add manifest to the archive
21891
21893
  filesList.push([
21892
- "embeddable-manifest",
21894
+ "embeddable-manifest.json",
21893
21895
  path$1.resolve(ctx.client.buildDir, "embeddable-manifest.json"),
21894
21896
  ]);
21895
21897
  await archive(ctx, filesList, true);
@@ -22040,7 +22042,7 @@ var defineConfig = ({ plugins, region = "legacy-US", pushBaseUrl, audienceUrl, a
22040
22042
  };
22041
22043
 
22042
22044
  var name = "@embeddable.com/sdk-core";
22043
- var version = "3.12.4-next.0";
22045
+ var version = "3.12.4-next.1";
22044
22046
  var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
22045
22047
  var keywords = [
22046
22048
  "embeddable",
@@ -22078,7 +22080,7 @@ var engines = {
22078
22080
  };
22079
22081
  var license = "MIT";
22080
22082
  var dependencies = {
22081
- "@embeddable.com/sdk-utils": "0.6.1",
22083
+ "@embeddable.com/sdk-utils": "0.6.2-next.0",
22082
22084
  "@inquirer/prompts": "^7.2.1",
22083
22085
  "@stencil/core": "^4.23.0",
22084
22086
  "@swc-node/register": "^1.10.9",