@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/lib/defineConfig.d.ts
CHANGED
|
@@ -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:
|
|
9
|
-
cleanup: (config:
|
|
10
|
-
validate: (config:
|
|
11
|
-
buildPackage: (config:
|
|
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:
|
|
259
|
-
cleanup: (config:
|
|
260
|
-
validate: (config:
|
|
261
|
-
buildPackage: (config:
|
|
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
|
|
22279
|
+
const clientContextFiles = await fg("**/*.cc.{yaml,yml}", {
|
|
22280
22280
|
cwd: ctx.client.presetsSrc,
|
|
22281
22281
|
absolute: true,
|
|
22282
22282
|
});
|
|
22283
|
-
filesToWatch = [...filesToWatch, ...
|
|
22283
|
+
filesToWatch = [...filesToWatch, ...clientContextFiles];
|
|
22284
22284
|
}
|
|
22285
22285
|
if (ctx.pushModels) {
|
|
22286
|
-
const [
|
|
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 = [...
|
|
22296
|
+
filesToWatch = [...filesToWatch, ...cubeFiles, ...securityContextFiles];
|
|
22297
22297
|
}
|
|
22298
22298
|
const fsWatcher = chokidar.watch(filesToWatch, chokidarWatchOptions);
|
|
22299
22299
|
fsWatcher.on("all", () => sendBuildChanges(ctx));
|