@eui/tools 6.2.3 → 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.
@@ -1 +1 @@
1
- 6.2.3
1
+ 6.2.5
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
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
+ * * *
10
+ ## 6.2.4 (2022-11-10)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * remoteOnly wrongly initialized - EUI-6448 [EUI-6448](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6448) ([bfc47049](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/bfc470492bab581996874120f97b8bdc44c1a405))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.2.3 (2022-11-09)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.2.3",
3
+ "version": "6.2.5",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -26,7 +26,7 @@ module.exports.init = () => {
26
26
  reset: reset || false,
27
27
  pkgOnly: pkgOnly || false,
28
28
  prjOnly: prjOnly || false,
29
- remoteOnly: remoteOnly || true,
29
+ remoteOnly: remoteOnly || false,
30
30
  build: build || false,
31
31
  containerOnly: containerOnly || false,
32
32
  skipAppContainers: skipAppContainers || false
@@ -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((remotes) => {
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
- const metadataFile = path.join(project.folder, 'src', 'assets', 'app-metadata-history.json');
114
+ if (!historyMetadata) {
115
+ tools.logInfo('no history metadata found...skipping');
134
116
 
135
- tools.logInfo(`Creating ${metadataFile}`);
117
+ } else {
118
+ const metadataFile = path.join(project.folder, 'src', 'assets', 'app-metadata-history.json');
136
119
 
137
- if (!dryRun && envTarget && envTarget !== 'DEV') {
138
- return tools.writeJsonFileSync(metadataFile, historyMetadata);
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