@eui/tools 5.3.85 → 5.3.86

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.3.85
1
+ 5.3.86
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 5.3.86 (2022-10-28)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * element build for v14 - MWP-8915 [MWP-8915](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8915) ([ad61b620](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ad61b62075b8899b844c98097023a8dfb506ec9a))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 5.3.85 (2022-10-28)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.3.85",
3
+ "version": "5.3.86",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -19,6 +19,8 @@ module.exports.build = (pkg, isMaster) => {
19
19
 
20
20
  const ng = path.resolve(pkg.paths.repoNodeModules, '@angular', 'cli', 'bin', 'ng');
21
21
 
22
+ const remoteEuiVersion = configUtils.packages.getRemoteEuiVersion(pkg);
23
+
22
24
  return Promise.resolve()
23
25
 
24
26
  .then(() => {
@@ -107,7 +109,16 @@ module.exports.build = (pkg, isMaster) => {
107
109
  }
108
110
  tools.logInfo(`Launching element build...`);
109
111
 
110
- let args = ['--max_old_space_size=8096', ng, 'build', pkg.name, '--prod'];
112
+ // specific for element
113
+ const versionNumber = remoteEuiVersion.split('.')[0];
114
+
115
+ let args;
116
+
117
+ if (versionNumber <= 10) {
118
+ args = ['--max_old_space_size=8096', ng, 'build', pkg.name, '--prod'];
119
+ } else {
120
+ args = ['--max_old_space_size=8096', ng, 'build', pkg.name];
121
+ }
111
122
 
112
123
  if (statsJson) {
113
124
  args.push(`--stats-json`);
@@ -127,7 +138,11 @@ module.exports.build = (pkg, isMaster) => {
127
138
  }
128
139
 
129
140
  // specific for element
130
- args.push(`--single-bundle=true`);
141
+
142
+ if (versionNumber <= 10) {
143
+ args.push(`--single-bundle=true`);
144
+ }
145
+
131
146
  args.push(`--output-hashing=none`);
132
147
 
133
148
  if (build) {