@eui/tools 5.2.1 → 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.1
1
+ 5.2.4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
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
+ * * *
10
+ ## 5.2.3 (2022-05-03)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * 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))
16
+
17
+ * * *
18
+ * * *
19
+ ## 5.2.2 (2022-05-03)
20
+
21
+ ##### Bug Fixes
22
+
23
+ * **other:**
24
+ * missing configuration injection for v14 normal app config - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([16e1260c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/16e1260c4845c65f2743c1ca1e9ae5a455dc51bc))
25
+
26
+ * * *
27
+ * * *
1
28
  ## 5.2.1 (2022-05-02)
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.1",
3
+ "version": "5.2.4",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -311,6 +311,36 @@ const angularProjectDefV13 = {
311
311
  }
312
312
  ]
313
313
  },
314
+ "production-optimized-no-openid": {
315
+ "fileReplacements": [
316
+ {
317
+ "replace": "apps/@project.name@/src/environments/environment.ts",
318
+ "with": "apps/@project.name@/src/environments/environment.prod.ts"
319
+ }
320
+ ],
321
+ "optimization": {
322
+ "scripts": true,
323
+ "styles": {
324
+ "minify": false,
325
+ "inlineCritical": true
326
+ },
327
+ "fonts": true
328
+ },
329
+ "outputHashing": "all",
330
+ "sourceMap": false,
331
+ "namedChunks": true,
332
+ "aot": true,
333
+ "extractLicenses": true,
334
+ "vendorChunk": false,
335
+ "buildOptimizer": true,
336
+ "budgets": [
337
+ {
338
+ "type": "initial",
339
+ "maximumWarning": "2mb",
340
+ "maximumError": "6mb"
341
+ }
342
+ ]
343
+ },
314
344
  "development": {
315
345
  "buildOptimizer": false,
316
346
  "optimization": false,
@@ -433,6 +463,36 @@ const angularProjectDefV14 = {
433
463
  }
434
464
  ]
435
465
  },
466
+ "production-optimized-no-openid": {
467
+ "fileReplacements": [
468
+ {
469
+ "replace": "apps/@project.name@/src/environments/environment.ts",
470
+ "with": "apps/@project.name@/src/environments/environment.prod.ts"
471
+ }
472
+ ],
473
+ "optimization": {
474
+ "scripts": true,
475
+ "styles": {
476
+ "minify": false,
477
+ "inlineCritical": true
478
+ },
479
+ "fonts": true
480
+ },
481
+ "outputHashing": "all",
482
+ "sourceMap": false,
483
+ "namedChunks": true,
484
+ "aot": true,
485
+ "extractLicenses": true,
486
+ "vendorChunk": false,
487
+ "buildOptimizer": true,
488
+ "budgets": [
489
+ {
490
+ "type": "initial",
491
+ "maximumWarning": "2mb",
492
+ "maximumError": "6mb"
493
+ }
494
+ ]
495
+ },
436
496
  "development": {
437
497
  "buildOptimizer": false,
438
498
  "optimization": false,
@@ -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;