@embeddable.com/sdk-core 3.14.0-next.3 → 3.14.0-next.5

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.
@@ -5,10 +5,10 @@ export type Region = "EU" | "US" | "legacy-US";
5
5
  export type EmbeddableConfig = {
6
6
  plugins: (() => {
7
7
  pluginName: string;
8
- build: (config: EmbeddableConfig) => Promise<unknown>;
9
- cleanup: (config: EmbeddableConfig) => Promise<unknown>;
10
- validate: (config: EmbeddableConfig) => Promise<unknown>;
11
- buildPackage: (config: EmbeddableConfig) => Promise<unknown>;
8
+ build: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
9
+ cleanup: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
10
+ validate: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
11
+ buildPackage: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
12
12
  })[];
13
13
  pushModels?: boolean;
14
14
  pushComponents?: boolean;
@@ -255,10 +255,10 @@ declare const _default: (config: EmbeddableConfig) => {
255
255
  rollbarAccessToken: string;
256
256
  plugins: (() => {
257
257
  pluginName: string;
258
- build: (config: EmbeddableConfig) => Promise<unknown>;
259
- cleanup: (config: EmbeddableConfig) => Promise<unknown>;
260
- validate: (config: EmbeddableConfig) => Promise<unknown>;
261
- buildPackage: (config: EmbeddableConfig) => Promise<unknown>;
258
+ build: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
259
+ cleanup: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
260
+ validate: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
261
+ buildPackage: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
262
262
  })[];
263
263
  };
264
264
  export default _default;
package/lib/index.esm.js CHANGED
@@ -22276,14 +22276,14 @@ const onBundleBuildEnd = async (ctx) => {
22276
22276
  const cubeSecurityContextAndClientContextWatcher = async (ctx) => {
22277
22277
  let filesToWatch = [];
22278
22278
  if (ctx.pushComponents) {
22279
- const cubeFiles = await fg("**/*.cc.{yaml,yml}", {
22279
+ const clientContextFiles = await fg("**/*.cc.{yaml,yml}", {
22280
22280
  cwd: ctx.client.presetsSrc,
22281
22281
  absolute: true,
22282
22282
  });
22283
- filesToWatch = [...filesToWatch, ...cubeFiles];
22283
+ filesToWatch = [...filesToWatch, ...clientContextFiles];
22284
22284
  }
22285
22285
  if (ctx.pushModels) {
22286
- const [modelsFiles, securityContextFiles] = await Promise.all([
22286
+ const [cubeFiles, securityContextFiles] = await Promise.all([
22287
22287
  fg("**/*.cube.{yaml,yml,js}", {
22288
22288
  cwd: ctx.client.modelsSrc,
22289
22289
  absolute: true,
@@ -22293,7 +22293,7 @@ const cubeSecurityContextAndClientContextWatcher = async (ctx) => {
22293
22293
  absolute: true,
22294
22294
  }),
22295
22295
  ]);
22296
- filesToWatch = [...modelsFiles, ...securityContextFiles];
22296
+ filesToWatch = [...filesToWatch, ...cubeFiles, ...securityContextFiles];
22297
22297
  }
22298
22298
  const fsWatcher = chokidar.watch(filesToWatch, chokidarWatchOptions);
22299
22299
  fsWatcher.on("all", () => sendBuildChanges(ctx));