@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.
- package/lib/defineConfig.d.ts +8 -8
- package/lib/index.esm.js +4 -4
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/defineConfig.ts +4 -4
- package/src/dev.ts +4 -4
package/package.json
CHANGED
package/src/defineConfig.ts
CHANGED
|
@@ -12,10 +12,10 @@ export type Region = "EU" | "US" | "legacy-US";
|
|
|
12
12
|
export type EmbeddableConfig = {
|
|
13
13
|
plugins: (() => {
|
|
14
14
|
pluginName: string;
|
|
15
|
-
build: (config:
|
|
16
|
-
cleanup: (config:
|
|
17
|
-
validate: (config:
|
|
18
|
-
buildPackage: (config:
|
|
15
|
+
build: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
|
|
16
|
+
cleanup: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
|
|
17
|
+
validate: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
|
|
18
|
+
buildPackage: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
|
|
19
19
|
})[];
|
|
20
20
|
pushModels?: boolean;
|
|
21
21
|
pushComponents?: boolean;
|
package/src/dev.ts
CHANGED
|
@@ -336,15 +336,15 @@ const cubeSecurityContextAndClientContextWatcher = async (
|
|
|
336
336
|
let filesToWatch: any = [];
|
|
337
337
|
|
|
338
338
|
if (ctx.pushComponents) {
|
|
339
|
-
const
|
|
339
|
+
const clientContextFiles = await fg("**/*.cc.{yaml,yml}", {
|
|
340
340
|
cwd: ctx.client.presetsSrc,
|
|
341
341
|
absolute: true,
|
|
342
342
|
});
|
|
343
|
-
filesToWatch = [...filesToWatch, ...
|
|
343
|
+
filesToWatch = [...filesToWatch, ...clientContextFiles];
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
if (ctx.pushModels) {
|
|
347
|
-
const [
|
|
347
|
+
const [cubeFiles, securityContextFiles] = await Promise.all([
|
|
348
348
|
fg("**/*.cube.{yaml,yml,js}", {
|
|
349
349
|
cwd: ctx.client.modelsSrc,
|
|
350
350
|
absolute: true,
|
|
@@ -354,7 +354,7 @@ const cubeSecurityContextAndClientContextWatcher = async (
|
|
|
354
354
|
absolute: true,
|
|
355
355
|
}),
|
|
356
356
|
]);
|
|
357
|
-
filesToWatch = [...
|
|
357
|
+
filesToWatch = [...filesToWatch, ...cubeFiles, ...securityContextFiles];
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
const fsWatcher = chokidar.watch(filesToWatch, chokidarWatchOptions);
|