* Get the root project of the graph * * @public * @returns {@ui5/project/specifications/Project} Root project
()
| 42 | * @returns {@ui5/project/specifications/Project} Root project |
| 43 | */ |
| 44 | getRoot() { |
| 45 | const rootProject = this._projects.get(this._rootProjectName); |
| 46 | if (!rootProject) { |
| 47 | throw new Error(`Unable to find root project with name ${this._rootProjectName} in project graph`); |
| 48 | } |
| 49 | return rootProject; |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Add a project to the graph |
no outgoing calls
no test coverage detected