@eui/tools 6.2.4 → 6.2.5
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/.version.properties +1 -1
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/scripts/csdr/metadata/app.js +10 -24
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.2.
|
|
1
|
+
6.2.5
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.2.5 (2022-11-10)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* check if previous historyMetadata are present for first build on environment - EUI-6448 [EUI-6448](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6448) ([e1491afd](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/e1491afd94652e56697a6680b9bcbaf54d170c6d))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.2.4 (2022-11-10)
|
|
2
11
|
|
|
3
12
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -86,26 +86,8 @@ const storeMetadataAssets = (project, newVersion, packagesDeps, historyMetadata,
|
|
|
86
86
|
tools.logTitle('Storing app assets metadata');
|
|
87
87
|
|
|
88
88
|
return Promise.resolve()
|
|
89
|
-
// getting remotes entries
|
|
90
|
-
.then(() => {
|
|
91
|
-
let remotes = [];
|
|
92
|
-
|
|
93
|
-
if (project.hasRemotes) {
|
|
94
|
-
remotes = configUtils.packages.getCsdrRemotePackages().filter((p) => {
|
|
95
|
-
return p.hostAppName = project.name
|
|
96
|
-
}).map((p) => {
|
|
97
|
-
return { name: p.name, npmPkg: p.npmPkg }
|
|
98
|
-
});
|
|
99
|
-
if (remotes) {
|
|
100
|
-
remotes = tools.sortArray(remotes, 'name');
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return remotes;
|
|
105
|
-
})
|
|
106
|
-
|
|
107
89
|
// storing metadata file
|
|
108
|
-
.then((
|
|
90
|
+
.then(() => {
|
|
109
91
|
tools.logInfo('Storing app metadata into project assets');
|
|
110
92
|
|
|
111
93
|
const appMetadata = {
|
|
@@ -113,7 +95,6 @@ const storeMetadataAssets = (project, newVersion, packagesDeps, historyMetadata,
|
|
|
113
95
|
appReleaseDate: appReleaseDate,
|
|
114
96
|
appInfos: appInfos,
|
|
115
97
|
metadata: packagesDeps,
|
|
116
|
-
remotes: remotes,
|
|
117
98
|
};
|
|
118
99
|
|
|
119
100
|
const metadataFile = path.join(project.folder, 'src', 'assets', 'app-metadata.json');
|
|
@@ -130,12 +111,17 @@ const storeMetadataAssets = (project, newVersion, packagesDeps, historyMetadata,
|
|
|
130
111
|
.then(() => {
|
|
131
112
|
tools.logInfo('Storing app env delta metadata into project assets');
|
|
132
113
|
|
|
133
|
-
|
|
114
|
+
if (!historyMetadata) {
|
|
115
|
+
tools.logInfo('no history metadata found...skipping');
|
|
134
116
|
|
|
135
|
-
|
|
117
|
+
} else {
|
|
118
|
+
const metadataFile = path.join(project.folder, 'src', 'assets', 'app-metadata-history.json');
|
|
136
119
|
|
|
137
|
-
|
|
138
|
-
|
|
120
|
+
tools.logInfo(`Creating ${metadataFile}`);
|
|
121
|
+
|
|
122
|
+
if (!dryRun && envTarget && envTarget !== 'DEV') {
|
|
123
|
+
return tools.writeJsonFileSync(metadataFile, historyMetadata);
|
|
124
|
+
}
|
|
139
125
|
}
|
|
140
126
|
})
|
|
141
127
|
|