MCPcopy Create free account
hub / github.com/SAP/ui5-project / getRoot

Method getRoot

lib/graph/ProjectGraph.js:44–50  ·  view source on GitHub ↗

* Get the root project of the graph * * @public * @returns {@ui5/project/specifications/Project} Root project

()

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected