@shoper/cli 0.1.0-23 → 0.1.0-24
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.
|
@@ -19,7 +19,12 @@ export class ThemeMetaDataUtils {
|
|
|
19
19
|
}
|
|
20
20
|
static async updateThemeMetadata(themeDirectory, data) {
|
|
21
21
|
const filePath = this.getThemeMetadataFilePath(themeDirectory);
|
|
22
|
-
|
|
22
|
+
const newData = {
|
|
23
|
+
...data,
|
|
24
|
+
skin_id: data.themeId
|
|
25
|
+
};
|
|
26
|
+
delete data.themeId;
|
|
27
|
+
await writeJSONFile(filePath, newData);
|
|
23
28
|
}
|
|
24
29
|
static async getThemeWorkUrl(themeDirectory) {
|
|
25
30
|
const metadataFilePath = this.getThemeMetadataFilePath(themeDirectory);
|