@eui/tools 5.2.3 → 5.2.4

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
- 5.2.3
1
+ 5.2.4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 5.2.4 (2022-05-05)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * wrong dependencies resolutions when not dependencies parent in composite of project - EUI-5632 [EUI-5632](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5632) ([3c4e8300](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3c4e8300d893cbdadc50a28b2bb019617288ca2c))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 5.2.3 (2022-05-03)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.2.3",
3
+ "version": "5.2.4",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -303,8 +303,14 @@ const getLocalProjectDeps = (prj) => {
303
303
 
304
304
  // check dependencies composite file - default
305
305
  const prjCompJsonFile = path.join(process.cwd(), prj.folder, 'dependencies-composite.json');
306
- const prjCompDeps = tools.getJsonFileContent(prjCompJsonFile).dependencies || {};
307
306
 
307
+ const depsJson = tools.getJsonFileContent(prjCompJsonFile);
308
+ let prjCompDeps;
309
+ if (depsJson.dependencies) {
310
+ prjCompDeps = depsJson.dependencies || {};
311
+ } else {
312
+ prjCompDeps = depsJson || {}
313
+ }
308
314
  return { ...prjDeps, ...prjCompDeps };
309
315
  }
310
316