* 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)
| 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 | /** |
no test coverage detected