@eui/tools 6.21.25 → 6.21.26

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.25
1
+ 6.21.26
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.21.26 (2025-01-09)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted tsconfig injected for legacy v10 builds - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([ba17e147](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ba17e1479692c767bbbe205d1dbae8ae416a580f))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.21.25 (2025-01-07)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.25",
3
+ "version": "6.21.26",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -9,6 +9,7 @@ const tools = require('../../utils/tools');
9
9
  const innerPackages = require('./packages');
10
10
  const innerProjects = require('./projects');
11
11
  const innerRemotes = require('./remotes');
12
+ const innerGlobal = require('./global');
12
13
 
13
14
  // CONFIGS skeletons
14
15
  const {
@@ -42,6 +43,7 @@ const {
42
43
  angularPackageDefV15Standalone,
43
44
  angularElementProjectDef,
44
45
  tsConfigDef,
46
+ tsConfigDefv10,
45
47
  tsConfigSpecDef,
46
48
  karmaConfDef,
47
49
  } = require('./config-skeletons');
@@ -52,8 +54,18 @@ module.exports.checkConfigFiles = (isReset) => {
52
54
 
53
55
  const rootPath = process.cwd();
54
56
 
57
+ const euiVersion = innerGlobal.getLocalEuiVersion();
58
+ const euiVersionNumber = parseInt(euiVersion);
59
+
55
60
  const angularConfig = path.join(rootPath, 'angular.json');
56
61
 
62
+ let tsConfigDefGen;
63
+ if (euiVersionNumber === 10) {
64
+ tsConfigDefGen = tsConfigDefv10;
65
+ } else {
66
+ tsConfigDefGen = tsConfigDef;
67
+ }
68
+
57
69
  if (!tools.isFileExists(angularConfig) || isReset) {
58
70
  tools.logInfo('Creating angular.json');
59
71
  tools.writeJsonFileSync(angularConfig, angularConfigDef);
@@ -65,15 +77,15 @@ module.exports.checkConfigFiles = (isReset) => {
65
77
 
66
78
  if (!tools.isFileExists(tsConfigDev) || isReset) {
67
79
  tools.logInfo('Creating tsconfig.json');
68
- tools.writeJsonFileSync(tsConfigDev, tsConfigDef);
80
+ tools.writeJsonFileSync(tsConfigDev, tsConfigDefGen);
69
81
  }
70
82
  if (!tools.isFileExists(tsConfigBuild) || isReset) {
71
83
  tools.logInfo('Creating tsconfig.build.json');
72
- tools.writeJsonFileSync(tsConfigBuild, tsConfigDef);
84
+ tools.writeJsonFileSync(tsConfigBuild, tsConfigDefGen);
73
85
  }
74
86
  if (!tools.isFileExists(tsConfigBuildSpec) || isReset) {
75
87
  tools.logInfo('Creating tsconfig.build.spec.json');
76
- tools.writeJsonFileSync(tsConfigBuildSpec, tsConfigDef);
88
+ tools.writeJsonFileSync(tsConfigBuildSpec, tsConfigDefGen);
77
89
  }
78
90
  }
79
91
 
@@ -2162,7 +2162,7 @@ module.exports.angularElementProjectDef = {
2162
2162
  };
2163
2163
 
2164
2164
 
2165
- module.exports.tsConfigDef = {
2165
+ module.exports.tsConfigDefv10 = {
2166
2166
  "compileOnSave": false,
2167
2167
  "compilerOptions": {
2168
2168
  "baseUrl": ".",
@@ -2186,6 +2186,30 @@ module.exports.tsConfigDef = {
2186
2186
  }
2187
2187
  };
2188
2188
 
2189
+ module.exports.tsConfigDef = {
2190
+ "compileOnSave": false,
2191
+ "compilerOptions": {
2192
+ "baseUrl": ".",
2193
+ "sourceMap": true,
2194
+ "declaration": false,
2195
+ "target": "ES2022",
2196
+ "module": "ES2022",
2197
+ "moduleResolution": "node",
2198
+ "allowSyntheticDefaultImports": true,
2199
+ "emitDecoratorMetadata": true,
2200
+ "experimentalDecorators": true,
2201
+ "typeRoots": [
2202
+ "node_modules/@types"
2203
+ ],
2204
+ "lib": [
2205
+ "ES2022",
2206
+ "dom",
2207
+ "dom.iterable"
2208
+ ],
2209
+ "paths": {}
2210
+ }
2211
+ };
2212
+
2189
2213
  module.exports.tsConfigSpecDef = {
2190
2214
  "extends": "../tsconfig.json",
2191
2215
  "compilerOptions": {