@eui/tools 6.21.11 → 6.21.12

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.11
1
+ 6.21.12
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.21.12 (2024-12-11)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted pwa serviceWorker injection for v18 - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([1f510a8a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/1f510a8a86a34f44f1524f836bdf20d78a672583))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.21.11 (2024-12-02)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.11",
3
+ "version": "6.21.12",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -388,7 +388,11 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
388
388
  // checking pwa additional injection
389
389
  if (project.build && project.build.pwa) {
390
390
  jsonFile['projects'][project.name].architect.build.options.serviceWorker = true;
391
- jsonFile['projects'][project.name].architect.build.options.ngswConfigPath = `${project.folder}/ngsw-config.json`;
391
+ if (packageEuiVersionNumber >= 18) {
392
+ jsonFile['projects'][project.name].architect.build.options.serviceWorker = `${project.folder}/ngsw-config.json`;
393
+ } else {
394
+ jsonFile['projects'][project.name].architect.build.options.ngswConfigPath = `${project.folder}/ngsw-config.json`;
395
+ }
392
396
  jsonFile['projects'][project.name].architect.build.options.assets.push(`apps/${project.name}/src/manifest.webmanifest`);
393
397
  }
394
398
  }