@embeddable.com/sdk-core 3.5.0 → 3.5.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
@@ -20869,7 +20869,7 @@ const onBundleBuildEnd = async (ctx) => {
20869
20869
  }
20870
20870
  };
20871
20871
  const dataModelAndSecurityContextWatcher = (ctx) => {
20872
- const fsWatcher = chokidar.watch([path$2.resolve(ctx.client.srcDir, "**/*.{cube,sc}.{yaml,yml,js}")], {
20872
+ const fsWatcher = chokidar.watch([path$2.resolve(ctx.client.modelsSrc, "**/*.{cube,sc}.{yaml,yml,js}")], {
20873
20873
  ignoreInitial: true,
20874
20874
  });
20875
20875
  fsWatcher.on("all", async () => {
@@ -20883,7 +20883,7 @@ const sendDataModelsAndSecurityContextsChanges = async (ctx) => {
20883
20883
  if (isValid) {
20884
20884
  const token = await getToken();
20885
20885
  const sending = ora("Synchronising data models and/or security contexts...").start();
20886
- const filesList = await findFiles(ctx.client.modelsSrc || ctx.client.srcDir, YAML_OR_JS_FILES);
20886
+ const filesList = await findFiles(ctx.client.modelsSrc, YAML_OR_JS_FILES);
20887
20887
  await archive(ctx, filesList, false);
20888
20888
  await sendBuild(ctx, { workspaceId: previewWorkspace, token });
20889
20889
  sending.succeed(`Data models and/or security context synchronized`);
@@ -20935,7 +20935,7 @@ const getPreviewWorkspace = async (ctx) => {
20935
20935
  }
20936
20936
  };
20937
20937
 
20938
- var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientId, errorFallbackComponent, applicationEnvironment, rollbarAccessToken, previewBaseUrl, modelsSrc, componentsSrc = "src", }) => {
20938
+ var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientId, errorFallbackComponent, applicationEnvironment, rollbarAccessToken, previewBaseUrl, modelsSrc = "src", componentsSrc = "src", }) => {
20939
20939
  const coreRoot = path$1.resolve(__dirname, "..");
20940
20940
  const clientRoot = process.cwd();
20941
20941
  if (!path$1.isAbsolute(componentsSrc)) {
@@ -20985,7 +20985,7 @@ var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientI
20985
20985
  };
20986
20986
 
20987
20987
  var name = "@embeddable.com/sdk-core";
20988
- var version = "3.5.0";
20988
+ var version = "3.5.1";
20989
20989
  var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
20990
20990
  var keywords = [
20991
20991
  "embeddable",