@eui/tools 6.21.26 → 6.21.28
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 +18 -0
- package/package.json +1 -1
- package/scripts/csdr/config/angular.js +22 -2
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.28
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.21.28 (2025-01-10)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted injection of root tsconfig for v10 remote (sedia) - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([da243c76](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/da243c7658bb7bc753f56320ab76baefcd8339b4))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.21.27 (2025-01-09)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* adapted project serve injected config for v19 - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([663636e1](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/663636e1079092e8696e786a4763eb3c3989a5b1))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.21.26 (2025-01-09)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -54,15 +54,27 @@ module.exports.checkConfigFiles = (isReset) => {
|
|
|
54
54
|
|
|
55
55
|
const rootPath = process.cwd();
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
let euiVersion;
|
|
58
|
+
|
|
59
|
+
const remoteArg = tools.getArgs().remote;
|
|
60
|
+
|
|
61
|
+
if (remoteArg) {
|
|
62
|
+
const remote = innerRemotes.getRemote(remoteArg);
|
|
63
|
+
euiVersion = remote.euiVersion;
|
|
64
|
+
} else {
|
|
65
|
+
euiVersion = innerGlobal.getLocalEuiVersion();
|
|
66
|
+
}
|
|
67
|
+
|
|
58
68
|
const euiVersionNumber = parseInt(euiVersion);
|
|
59
69
|
|
|
60
70
|
const angularConfig = path.join(rootPath, 'angular.json');
|
|
61
71
|
|
|
62
72
|
let tsConfigDefGen;
|
|
63
73
|
if (euiVersionNumber === 10) {
|
|
74
|
+
tools.logInfo('v10 found, specific injection of tsconfig');
|
|
64
75
|
tsConfigDefGen = tsConfigDefv10;
|
|
65
76
|
} else {
|
|
77
|
+
tools.logInfo('Injecting tsconfig ES2022 based (post v10)');
|
|
66
78
|
tsConfigDefGen = tsConfigDef;
|
|
67
79
|
}
|
|
68
80
|
|
|
@@ -71,6 +83,9 @@ module.exports.checkConfigFiles = (isReset) => {
|
|
|
71
83
|
tools.writeJsonFileSync(angularConfig, angularConfigDef);
|
|
72
84
|
}
|
|
73
85
|
|
|
86
|
+
tools.logInfo('tsconfig found:');
|
|
87
|
+
console.log(tsConfigDefGen);
|
|
88
|
+
|
|
74
89
|
const tsConfigDev = path.join(rootPath, 'tsconfig.json');
|
|
75
90
|
const tsConfigBuild = path.join(rootPath, 'tsconfig.build.json');
|
|
76
91
|
const tsConfigBuildSpec = path.join(rootPath, 'tsconfig.build.spec.json');
|
|
@@ -388,7 +403,12 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
|
|
|
388
403
|
jsonFile['projects'][project.name].architect.build.configurations[confKey] = replaceConfiguration;
|
|
389
404
|
|
|
390
405
|
// writing serve configuration entry
|
|
391
|
-
|
|
406
|
+
let serveConf;
|
|
407
|
+
if (packageEuiVersionNumber >= 19) {
|
|
408
|
+
serveConf = { buildTarget: project.name + ':build:' + confKey };
|
|
409
|
+
} else {
|
|
410
|
+
serveConf = { browserTarget: project.name + ':build:' + confKey };
|
|
411
|
+
}
|
|
392
412
|
// add proxy configuration
|
|
393
413
|
if (confKey.startsWith('cdn-') && confKey.endsWith('-local')) {
|
|
394
414
|
serveConf ['proxyConfig'] = 'hosts/' + project.name + '/proxy-' + confKey + '-openid.conf.js';
|