@sap-ux/adp-tooling 0.18.89 → 0.18.90

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.
@@ -25,11 +25,10 @@ export declare function getServicesForFile(mtaFilePath: string, logger: ToolsLog
25
25
  /**
26
26
  * Check if the project has an approuter.
27
27
  *
28
- * @param {string} projectName - The project name.
29
28
  * @param {string[]} moduleNames - The module names.
30
29
  * @returns {boolean} Whether the project has an approuter.
31
30
  */
32
- export declare function hasApprouter(projectName: string, moduleNames: string[]): boolean;
31
+ export declare function hasApprouter(moduleNames: string[]): boolean;
33
32
  /**
34
33
  * Get the services for the MTA project.
35
34
  *
@@ -92,13 +92,11 @@ function getServicesForFile(mtaFilePath, logger) {
92
92
  /**
93
93
  * Check if the project has an approuter.
94
94
  *
95
- * @param {string} projectName - The project name.
96
95
  * @param {string[]} moduleNames - The module names.
97
96
  * @returns {boolean} Whether the project has an approuter.
98
97
  */
99
- function hasApprouter(projectName, moduleNames) {
100
- return moduleNames.some((name) => name === `${projectName.toLowerCase()}-destination-content` ||
101
- name === `${projectName.toLowerCase()}-approuter`);
98
+ function hasApprouter(moduleNames) {
99
+ return moduleNames.some((name) => name.includes('destination-content') || name.includes('approuter'));
102
100
  }
103
101
  /**
104
102
  * Filter services based on the business services.
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
11
11
  },
12
- "version": "0.18.89",
12
+ "version": "0.18.90",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",