@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -30,7 +30,7 @@ export default ({
30
30
  applicationEnvironment,
31
31
  rollbarAccessToken,
32
32
  previewBaseUrl,
33
- modelsSrc,
33
+ modelsSrc = "src",
34
34
  componentsSrc = "src",
35
35
  }: EmbeddableConfig) => {
36
36
  const coreRoot = path.resolve(__dirname, "..");
package/src/dev.ts CHANGED
@@ -213,7 +213,7 @@ const onBundleBuildEnd = async (ctx: any) => {
213
213
 
214
214
  const dataModelAndSecurityContextWatcher = (ctx: any): FSWatcher => {
215
215
  const fsWatcher = chokidar.watch(
216
- [path.resolve(ctx.client.srcDir, "**/*.{cube,sc}.{yaml,yml,js}")],
216
+ [path.resolve(ctx.client.modelsSrc, "**/*.{cube,sc}.{yaml,yml,js}")],
217
217
  {
218
218
  ignoreInitial: true,
219
219
  },
@@ -233,10 +233,7 @@ const sendDataModelsAndSecurityContextsChanges = async (ctx: any) => {
233
233
  const sending = ora(
234
234
  "Synchronising data models and/or security contexts...",
235
235
  ).start();
236
- const filesList = await findFiles(
237
- ctx.client.modelsSrc || ctx.client.srcDir,
238
- YAML_OR_JS_FILES,
239
- );
236
+ const filesList = await findFiles(ctx.client.modelsSrc, YAML_OR_JS_FILES);
240
237
  await archive(ctx, filesList, false);
241
238
  await sendBuild(ctx, { workspaceId: previewWorkspace, token });
242
239
  sending.succeed(`Data models and/or security context synchronized`);