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

Method declareDependency

lib/graph/ProjectGraph.js:181–191  ·  view source on GitHub ↗

* Declare a dependency from one project in the graph to another * * @public * @param {string} fromProjectName Name of the depending project * @param {string} toProjectName Name of project on which the other depends

(fromProjectName, toProjectName)

Source from the content-addressed store, hash-verified

179 * @param {string} toProjectName Name of project on which the other depends
180 */
181 declareDependency(fromProjectName, toProjectName) {
182 this._checkSealed();
183 try {
184 log.verbose(`Declaring dependency: ${fromProjectName} depends on ${toProjectName}`);
185 this._declareDependency(this._adjList, fromProjectName, toProjectName);
186 } catch (err) {
187 throw new Error(
188 `Failed to declare dependency from project ${fromProjectName} to ${toProjectName}: ` +
189 err.message);
190 }
191 }
192
193
194 /**

Callers 5

projectGraphBuilderFunction · 0.95
_addProjectToGraphMethod · 0.80
ProjectGraph.jsFile · 0.80

Calls 2

_checkSealedMethod · 0.95
_declareDependencyMethod · 0.95

Tested by

no test coverage detected