@eui/tools 5.2.2 → 5.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
- 5.2.2
1
+ 5.2.5
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## 5.2.5 (2022-05-12)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **eui-tools:**
6
+ * sub-package build issue - EUI-5961 [EUI-5961](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5961) ([8dcb702b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/8dcb702b8f59ccee550c10177bdd3cab6f50b5a9))
7
+
8
+ * * *
9
+ * * *
10
+ ## 5.2.4 (2022-05-05)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * 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))
16
+
17
+ * * *
18
+ * * *
19
+ ## 5.2.3 (2022-05-03)
20
+
21
+ ##### Bug Fixes
22
+
23
+ * **other:**
24
+ * wrong tag set for envTarget based packages/remotes - EUI-5632 [EUI-5632](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5632) ([6f9a69d2](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/6f9a69d2e73067902592575a6c97d7c0e5633d40))
25
+
26
+ * * *
27
+ * * *
1
28
  ## 5.2.2 (2022-05-03)
2
29
 
3
30
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.2.2",
3
+ "version": "5.2.5",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -1340,7 +1340,7 @@ module.exports.registerAngularPackageSubEntry = (subEntryName, subEntryPath) =>
1340
1340
 
1341
1341
  let projectDef = JSON.stringify(angularPackageSubEntryDef);
1342
1342
 
1343
- let replacePath = tools.replaceAll(projectDef, '@subEntry.path@', subEntryPath)
1343
+ let replacePath = tools.replaceAll(projectDef, '@subEntry.path@', subEntryName)
1344
1344
  replacePath = tools.replaceAll(replacePath, '@subEntry.package.name@', 'ng-package.json');
1345
1345
 
1346
1346
  jsonFile['projects'][subEntryName] = JSON.parse(replacePath);
@@ -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
 
@@ -24,18 +24,14 @@ const writePackageJsonCore = (newVersion, folder, isSnapshot, isNextBranch, isSu
24
24
 
25
25
  let tag;
26
26
 
27
- if (envTarget && envTarget === 'DEV') {
27
+ if (isSnapshot) {
28
28
  tag = 'snapshot';
29
+ } else if (isNextBranch) {
30
+ tag = 'next';
31
+ } else if (isSupportBranch) {
32
+ tag = 'prev';
29
33
  } else {
30
- if (isSnapshot) {
31
- tag = 'snapshot';
32
- } else if (isNextBranch) {
33
- tag = 'next';
34
- } else if (isSupportBranch) {
35
- tag = 'prev';
36
- } else {
37
- tag = 'latest';
38
- }
34
+ tag = 'latest';
39
35
  }
40
36
 
41
37
  pkgJson.version = newVersion;
@@ -412,7 +412,7 @@ function getFiles(parentPath) {
412
412
 
413
413
  function getFilesGlob(from, fileGlob) {
414
414
  return new Promise((resolve, reject) => {
415
- glob(fileGlob, { cwd: from, nodir: true, follow: true, dot: true }, (err, files) => {
415
+ glob(fileGlob, { ignore: ['dist/**'], cwd: from, nodir: true, follow: true, dot: true }, (err, files) => {
416
416
  if (err) {
417
417
  logError(err);
418
418
  reject(err);