@eui/tools 6.13.11 → 6.13.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.13.11
1
+ 6.13.12
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.13.12 (2023-11-24)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * alter source path for SonarQube when subEntries - EUI-8525 [EUI-8525](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-8525) ([b2aafac9](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b2aafac9b8dc438b680560200629fadfbf7e50aa))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.13.11 (2023-11-22)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.13.11",
3
+ "version": "6.13.12",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -2,7 +2,7 @@ sonar.projectKey=CSDR-@project.name@
2
2
  sonar.projectName=@project.name@
3
3
  sonar.projectVersion=@project.version@
4
4
 
5
- sonar.sources=@project.path@/src/lib/
5
+ sonar.sources=@project.path@
6
6
  sonar.sourceEncoding=UTF-8
7
7
 
8
8
  sonar.test.inclusions=**/*.spec.ts
@@ -66,7 +66,7 @@ const generateMavenSettings = (userName, userPassword, outputPath) => {
66
66
 
67
67
 
68
68
 
69
- const generateSonarPropertiesUI = (pkgName, pkgVersion, outputPath) => {
69
+ const generateSonarPropertiesUI = (pkgName, pkgVersion, outputPath, hasSubEntries = false) => {
70
70
  tools.logInfo('Generating sonar property file for UI package...');
71
71
 
72
72
  const outputFilePath = path.join(outputPath, 'sonar-project.properties');
@@ -91,7 +91,7 @@ const generateSonarPropertiesUI = (pkgName, pkgVersion, outputPath) => {
91
91
  })
92
92
  .then(() => {
93
93
  tools.logInfo('Replace project package path...');
94
- return tools.replaceInFile(outputFilePath, '@project.path@', outputPath);
94
+ return tools.replaceInFile(outputFilePath, '@project.path@', outputPath + hasSubEntries ? '' : '/src/lib/');
95
95
  })
96
96
  .then(() => {
97
97
  tools.logInfo('Replace project lcov root path...');
@@ -109,7 +109,7 @@ const runUI = (pkg, isMaster) => {
109
109
  })
110
110
  .then((gitShortHash) => {
111
111
  return templateUtils.generateSonarPropertiesUI(
112
- pkg.name, gitShortHash, pkg.paths.root
112
+ pkg.name, gitShortHash, pkg.paths.root, !pkg.build.sourceRootDefault
113
113
  );
114
114
  })
115
115
  .then(() => {