@eui/tools 6.21.46 → 6.21.47

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.21.46
1
+ 6.21.47
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.21.47 (2025-03-05)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * Enable BFF for localhost development [CCARCHITEC-1641](https://webgate.ec.europa.eu/CITnet/jira/browse/CCARCHITEC-1641) ([8e26c76e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/8e26c76e19aada261a5b74d37ce8f1e64b6ad539))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.21.46 (2025-03-05)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.46",
3
+ "version": "6.21.47",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -410,7 +410,23 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
410
410
 
411
411
  let replaceConfiguration = '';
412
412
  if (confKey.indexOf('local') > -1) {
413
- tools.logInfo('Local injection (non-optimized)')
413
+ tools.logInfo('Local injection (non-optimized)');
414
+ try {
415
+ if (confKey.indexOf('cdn') > -1) {
416
+ let localIndexFilePath = 'hosts/' + project.name + '/src/index-local';
417
+ if (confKey.indexOf('dev') > -1) {
418
+ localIndexFilePath += '-dev';
419
+ } else if (confKey.indexOf('tst') > -1) {
420
+ localIndexFilePath += '-tst';
421
+ }
422
+ localIndexFilePath += '.html';
423
+ const configurationDefObject = JSON.parse(configurationDef);
424
+ configurationDefObject.index = localIndexFilePath;
425
+ configurationDef = JSON.stringify(configurationDefObject);
426
+ }
427
+ } catch (error) {
428
+ tools.logError('Failed to replace local index.html file.');
429
+ }
414
430
  replaceConfiguration = tools.replaceAll(configurationDef, '@config.filename@', confValue);
415
431
  } else {
416
432
  tools.logInfo('Env injection - optimized');