@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.js CHANGED
@@ -21636,7 +21636,9 @@ async function buildArchive(config) {
21636
21636
  const spinnerArchive = ora$1("Building...").start();
21637
21637
  const cubeFilesList = await findFiles(config.client.modelsSrc || config.client.srcDir, CUBE_FILES);
21638
21638
  const contextFilesList = await findFiles(config.client.presetsSrc || config.client.srcDir, PRESET_FILES);
21639
- await archive(config, [...cubeFilesList, ...contextFilesList]);
21639
+ // Map the files to include their full filenames
21640
+ const filesList = [...cubeFilesList, ...contextFilesList].map((entry) => [path__namespace$1.basename(entry[1]), entry[1]]);
21641
+ await archive(config, filesList);
21640
21642
  return spinnerArchive.succeed("Bundling completed");
21641
21643
  }
21642
21644
  async function archive(ctx, yamlFiles, isDev = false) {
@@ -21652,9 +21654,8 @@ async function archive(ctx, yamlFiles, isDev = false) {
21652
21654
  });
21653
21655
  }
21654
21656
  for (const fileData of yamlFiles) {
21655
- const fileName = fileData[1].split("/").pop();
21656
21657
  _archiver.file(fileData[1], {
21657
- name: fileName,
21658
+ name: fileData[0],
21658
21659
  });
21659
21660
  }
21660
21661
  await _archiver.finalize();
@@ -21915,10 +21916,11 @@ const sendDataModelsAndContextsChanges = async (ctx) => {
21915
21916
  const sending = ora("Synchronising data models and/or security contexts...").start();
21916
21917
  const cubeFilesList = await findFiles(ctx.client.modelsSrc, CUBE_FILES);
21917
21918
  const contextFilesList = await findFiles(ctx.client.presetsSrc, PRESET_FILES);
21918
- const filesList = [...cubeFilesList, ...contextFilesList];
21919
+ // Map the files to include their full filenames
21920
+ const filesList = [...cubeFilesList, ...contextFilesList].map((entry) => [path__namespace$1.basename(entry[1]), entry[1]]);
21919
21921
  // add manifest to the archive
21920
21922
  filesList.push([
21921
- "embeddable-manifest",
21923
+ "embeddable-manifest.json",
21922
21924
  path__namespace$1.resolve(ctx.client.buildDir, "embeddable-manifest.json"),
21923
21925
  ]);
21924
21926
  await archive(ctx, filesList, true);
@@ -22069,7 +22071,7 @@ var defineConfig = ({ plugins, region = "legacy-US", pushBaseUrl, audienceUrl, a
22069
22071
  };
22070
22072
 
22071
22073
  var name = "@embeddable.com/sdk-core";
22072
- var version = "3.12.4-next.0";
22074
+ var version = "3.12.4-next.1";
22073
22075
  var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
22074
22076
  var keywords = [
22075
22077
  "embeddable",
@@ -22107,7 +22109,7 @@ var engines = {
22107
22109
  };
22108
22110
  var license = "MIT";
22109
22111
  var dependencies = {
22110
- "@embeddable.com/sdk-utils": "0.6.1",
22112
+ "@embeddable.com/sdk-utils": "0.6.2-next.0",
22111
22113
  "@inquirer/prompts": "^7.2.1",
22112
22114
  "@stencil/core": "^4.23.0",
22113
22115
  "@swc-node/register": "^1.10.9",