* Returns an array of [Module]{@ui5/project/graph/Module} instances found in the configured * dependency-management resolution paths of this workspace, sorted by module ID. * * @public * @returns {Promise<@ui5/project/graph/Module[]>} * Array of Module instances sorted by module ID
()
| 83 | * Array of Module instances sorted by module ID |
| 84 | */ |
| 85 | async getModules() { |
| 86 | const {moduleIdMap} = await this._getResolvedModules(); |
| 87 | const sortedMap = new Map([...moduleIdMap].sort((a, b) => String(a[0]).localeCompare(b[0]))); |
| 88 | return Array.from(sortedMap.values()); |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * For a given project name (e.g. the value of the <code>metadata.name</code> property in a ui5.yaml), |
no test coverage detected