({workspace, projectGraph})
| 245 | return {dependencies, optionalDependencies}; |
| 246 | }, |
| 247 | async getWorkspaceFrameworkLibraryMetadata({workspace, projectGraph}) { |
| 248 | const libraryMetadata = Object.create(null); |
| 249 | const ui5Modules = await workspace.getModules(); |
| 250 | for (const ui5Module of ui5Modules) { |
| 251 | const {project} = await ui5Module.getSpecifications(); |
| 252 | // Only framework projects that are not already part of the projectGraph should be handled. |
| 253 | // Otherwise they would be available twice which is checked |
| 254 | // after installing via checkForDuplicateFrameworkProjects |
| 255 | if (project?.isFrameworkProject?.() && !projectGraph.getProject(project.getName())) { |
| 256 | const metadata = libraryMetadata[project.getName()] = Object.create(null); |
| 257 | metadata.id = project.getId(); |
| 258 | metadata.path = project.getRootPath(); |
| 259 | metadata.version = project.getVersion(); |
| 260 | const {dependencies, optionalDependencies} = await utils.getFrameworkLibraryDependencies(project); |
| 261 | metadata.dependencies = dependencies; |
| 262 | metadata.optionalDependencies = optionalDependencies; |
| 263 | } |
| 264 | } |
| 265 | return libraryMetadata; |
| 266 | }, |
| 267 | ProjectProcessor |
| 268 | }; |
| 269 |
nothing calls this directly
no test coverage detected