@shoper/cli 0.5.0 → 0.5.1-0

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.
@@ -40,7 +40,7 @@ export class ThemeFilesStructureUtils {
40
40
  });
41
41
  }
42
42
  static mapFilesRecordsToFilesList(filesRecords, localFileNameToUploaded = {}) {
43
- return filesRecords.reduce((acc, { fileGlob, fileName }) => {
43
+ const mappedFilesRecords = filesRecords.reduce((acc, { fileGlob, fileName }) => {
44
44
  const name = localFileNameToUploaded[fileName] ?? fileName;
45
45
  if (looksLikeDirectory(fileGlob)) {
46
46
  const existingFiles = acc[fileGlob] || [];
@@ -56,6 +56,13 @@ export class ThemeFilesStructureUtils {
56
56
  };
57
57
  }
58
58
  }, {});
59
+ /*
60
+ * Brzydki fix, poprawione w partial push na ładniej
61
+ */
62
+ if (!mappedFilesRecords['settings/thumbnail.jpg']) {
63
+ mappedFilesRecords['settings/thumbnail.jpg'] = 'null';
64
+ }
65
+ return mappedFilesRecords;
59
66
  }
60
67
  static async createAFilesListFile(themeRootDir, filesList) {
61
68
  if (!filesList || !Object.keys(filesList).length)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@shoper/cli",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "0.5.0",
5
+ "version": "0.5.1-0",
6
6
  "description": "CLI tool for Shoper",
7
7
  "author": "Joanna Firek",
8
8
  "license": "MIT",