@embeddable.com/sdk-core 3.7.1 → 3.7.2

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.7.1",
3
+ "version": "3.7.2",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
package/src/push.ts CHANGED
@@ -175,10 +175,16 @@ async function buildArchive(config: any) {
175
175
  YAML_OR_JS_FILES,
176
176
  );
177
177
 
178
- const selfServeFiles = await findFiles(
179
- `${config.client.selfServeCustomizationDir}`,
180
- SELF_SERVE_CUSTOM_FILES,
181
- );
178
+ let selfServeFiles: [string, string][] = [];
179
+
180
+ // check existance of self-serve-customization folder
181
+ try {
182
+ await fs.access(config.client.selfServeCustomizationDir);
183
+ selfServeFiles = await findFiles(
184
+ `${config.client.selfServeCustomizationDir}`,
185
+ SELF_SERVE_CUSTOM_FILES,
186
+ );
187
+ } catch (e: any) {}
182
188
 
183
189
  await archive(config, filesList, selfServeFiles);
184
190
  return spinnerArchive.succeed("Bundling completed");