@eui/tools 5.3.31 → 5.3.34
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 +27 -0
- package/package.json +1 -1
- package/scripts/csdr/config/angular.js +9 -7
- package/scripts/csdr/config/packages.js +12 -0
- package/scripts/csdr/config/projects.js +11 -0
- package/scripts/csdr/init/resources/13.x/resolutions.json +1 -2
- package/scripts/csdr/init/resources/13.x/yarn.lock +11123 -677
- package/scripts/csdr/init/resources/13.x/yarn.lock.temp +4508 -0
- package/scripts/utils/build/app/build-app-utils.js +22 -8
- package/scripts/utils/build/package/angular.js +4 -4
- package/scripts/utils/build/package/build-package-utils.js +1 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.3.
|
|
1
|
+
5.3.34
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 5.3.34 (2022-07-14)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* support esLint for apps - EUI-6231 [EUI-6231](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6231) ([6d211c50](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/6d211c50cd08ec43d1d129fca64ec0bf010dec1c))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 5.3.33 (2022-07-14)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* support tsconfig.json usage in lib packages - EUI-6227 [EUI-6227](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6227) ([72c220f8](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/72c220f872f652b4f94359a74d89845d29b475a5))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 5.3.32 (2022-07-13)
|
|
20
|
+
|
|
21
|
+
##### Chores
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* remove marked resolutions - issues on eui build - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([c8407530](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c8407530c0b9b58c6f11b0ca1092acb0309d8071))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
1
28
|
## 5.3.31 (2022-07-12)
|
|
2
29
|
|
|
3
30
|
##### Chores
|
package/package.json
CHANGED
|
@@ -1085,7 +1085,7 @@ const angularPackageDef = {
|
|
|
1085
1085
|
"build": {
|
|
1086
1086
|
"builder": "@angular-devkit/build-ng-packagr:build",
|
|
1087
1087
|
"options": {
|
|
1088
|
-
"tsConfig": "@path@/@module.name
|
|
1088
|
+
"tsConfig": "@path@/@module.name@/@tsconfig@",
|
|
1089
1089
|
"project": "@path@/@module.name@/ng-package.json"
|
|
1090
1090
|
},
|
|
1091
1091
|
"configurations": {
|
|
@@ -1114,12 +1114,12 @@ const angularPackageSubEntryDef = {
|
|
|
1114
1114
|
"build": {
|
|
1115
1115
|
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
1116
1116
|
"options": {
|
|
1117
|
-
"tsConfig": "packages/eui/packages/components
|
|
1117
|
+
"tsConfig": "packages/eui/packages/components/@tsconfig@",
|
|
1118
1118
|
"project": "packages/eui/packages/components/@subEntry.path@/@subEntry.package.name@"
|
|
1119
1119
|
},
|
|
1120
1120
|
"configurations": {
|
|
1121
1121
|
"production": {
|
|
1122
|
-
"tsConfig": "packages/eui/packages/components
|
|
1122
|
+
"tsConfig": "packages/eui/packages/components/@tsconfig@"
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
},
|
|
@@ -1154,7 +1154,7 @@ const angularPackageDefV13 = {
|
|
|
1154
1154
|
"build": {
|
|
1155
1155
|
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
1156
1156
|
"options": {
|
|
1157
|
-
"tsConfig": "@path@/@module.name
|
|
1157
|
+
"tsConfig": "@path@/@module.name@/@tsconfig@",
|
|
1158
1158
|
"project": "@path@/@module.name@/ng-package.json"
|
|
1159
1159
|
},
|
|
1160
1160
|
"configurations": {
|
|
@@ -1194,7 +1194,7 @@ const angularPackageDefV14 = {
|
|
|
1194
1194
|
"build": {
|
|
1195
1195
|
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
1196
1196
|
"options": {
|
|
1197
|
-
"tsConfig": "@path@/@module.name
|
|
1197
|
+
"tsConfig": "@path@/@module.name@/@tsconfig@",
|
|
1198
1198
|
"project": "@path@/@module.name@/ng-package.json"
|
|
1199
1199
|
},
|
|
1200
1200
|
"configurations": {
|
|
@@ -1385,14 +1385,15 @@ module.exports.registerAngularPackage = (pkg, isReset) => {
|
|
|
1385
1385
|
const replacePath = tools.replaceAll(replaceModule, '@path@', pathBase);
|
|
1386
1386
|
const replaceSrcRoot = tools.replaceAll(replacePath, '@srcRoot@', srcRoot);
|
|
1387
1387
|
const replaceSrcRootTesting = tools.replaceAll(replaceSrcRoot, '@srcRootTesting@', srcRootTesting);
|
|
1388
|
+
const replaceTSConfig = tools.replaceAll(replaceSrcRootTesting, '@tsconfig@', pkg.tsConfigFileName);
|
|
1388
1389
|
|
|
1389
|
-
jsonFile['projects'][pkg.name] = JSON.parse(
|
|
1390
|
+
jsonFile['projects'][pkg.name] = JSON.parse(replaceTSConfig);
|
|
1390
1391
|
|
|
1391
1392
|
tools.writeJsonFileSync(file, jsonFile);
|
|
1392
1393
|
}
|
|
1393
1394
|
|
|
1394
1395
|
|
|
1395
|
-
module.exports.registerAngularPackageSubEntry = (subEntryName, subEntryPath) => {
|
|
1396
|
+
module.exports.registerAngularPackageSubEntry = (subEntryName, subEntryPath, pkg) => {
|
|
1396
1397
|
const file = path.join(process.cwd(), 'angular.json');
|
|
1397
1398
|
const jsonFile = require(file);
|
|
1398
1399
|
|
|
@@ -1400,6 +1401,7 @@ module.exports.registerAngularPackageSubEntry = (subEntryName, subEntryPath) =>
|
|
|
1400
1401
|
|
|
1401
1402
|
let replacePath = tools.replaceAll(projectDef, '@subEntry.path@', subEntryName)
|
|
1402
1403
|
replacePath = tools.replaceAll(replacePath, '@subEntry.package.name@', 'ng-package.json');
|
|
1404
|
+
replacePath = tools.replaceAll(replacePath, '@tsconfig@', pkg.tsConfigFileName);
|
|
1403
1405
|
|
|
1404
1406
|
jsonFile['projects'][subEntryName] = JSON.parse(replacePath);
|
|
1405
1407
|
|
|
@@ -107,6 +107,7 @@ module.exports.getPackage = (pkgName, fromCsdrConfig, optional) => {
|
|
|
107
107
|
|
|
108
108
|
// additional pkg infos
|
|
109
109
|
pkg.paths = this.getPackagePaths(pkg);
|
|
110
|
+
pkg.tsConfigFileName = path.parse(pkg.paths.tsConfig).name;
|
|
110
111
|
|
|
111
112
|
// devops file location
|
|
112
113
|
if (pkg.child) {
|
|
@@ -182,6 +183,7 @@ module.exports.getPackagePaths = (pkg) => {
|
|
|
182
183
|
pkgJson: resolvePath(packagesPath + '/' + folder + '/package.json'),
|
|
183
184
|
pkgSrc: resolvePath(packagesPath + '/' + folder + '/src'),
|
|
184
185
|
pkgLibFolder: resolvePath(packagesPath + '/' + folder + '/src/lib'),
|
|
186
|
+
tsConfig: this.getTSConfigPath(resolvePath, packagesPath + '/' + folder),
|
|
185
187
|
};
|
|
186
188
|
|
|
187
189
|
return paths;
|
|
@@ -307,3 +309,13 @@ module.exports.getLocalPackagesEuiVersion = () => {
|
|
|
307
309
|
|
|
308
310
|
return versionsFound;
|
|
309
311
|
}
|
|
312
|
+
|
|
313
|
+
module.exports.getTSConfigPath = (resolvePath, packagePath) => {
|
|
314
|
+
const path = resolvePath(`${packagePath}/tsconfig.json`);
|
|
315
|
+
const oldPath = resolvePath(`${packagePath}/tsconfig.lib.json`);
|
|
316
|
+
return fs.existsSync(path) ? path : oldPath;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
module.exports.getTSConfigFileName = (tsConfigPath) => {
|
|
320
|
+
return tsConfigPath.split('/')[tsConfigPath.split('/').length - 1];
|
|
321
|
+
}
|
|
@@ -58,6 +58,17 @@ const getProjectPaths = (prj) => {
|
|
|
58
58
|
nodeModulesPath: nodeModulesPath,
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
// locate and find the TSLint or ESLint configuration files
|
|
62
|
+
if(tools.isFileExists(path.join(rootPath, 'src', 'tslint.json'))) {
|
|
63
|
+
tools.logWarning('TSLint is deprecated and will be removed in the future. Consider migrating to ESLint')
|
|
64
|
+
paths.tslintPath = path.join(rootPath, 'src', 'tslint.json');
|
|
65
|
+
} else if(tools.isFileExists(path.join(rootPath, '.tslint.json'))) {
|
|
66
|
+
tools.logWarning('TSLint is deprecated and will be removed in the future. Consider migrating to ESLint')
|
|
67
|
+
paths.tslintPath = path.join(rootPath, '.tslint.json');
|
|
68
|
+
} else if(tools.isFileExists(path.join(rootPath, 'src', '.eslintrc.json'))) {
|
|
69
|
+
paths.eslintPath = path.join(rootPath, 'src', '.eslintrc.json');
|
|
70
|
+
}
|
|
71
|
+
|
|
61
72
|
return { paths: paths };
|
|
62
73
|
}
|
|
63
74
|
|