@shoper/cli 0.4.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.
|
@@ -46,7 +46,6 @@ const isCommandsTopic = (arg) => {
|
|
|
46
46
|
const getCommandWithTopicBaseInitializers = () => {
|
|
47
47
|
const topic = process.argv[2];
|
|
48
48
|
const command = process.argv[3];
|
|
49
|
-
console.log('topic', topic, 'command', command);
|
|
50
49
|
switch (topic) {
|
|
51
50
|
case THEME_TOPIC_NAME: {
|
|
52
51
|
return getThemeInitializersForCommand(command);
|
|
@@ -40,7 +40,7 @@ export class ThemeFilesStructureUtils {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
static mapFilesRecordsToFilesList(filesRecords, localFileNameToUploaded = {}) {
|
|
43
|
-
|
|
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)
|