* Get all direct dependencies of a project as an array of project names * * @public * @param {string} projectName Name of the project to retrieve the dependencies of * @returns {string[]} Names of all direct dependencies
(projectName)
| 247 | * @returns {string[]} Names of all direct dependencies |
| 248 | */ |
| 249 | getDependencies(projectName) { |
| 250 | const adjacencies = this._adjList.get(projectName); |
| 251 | if (!adjacencies) { |
| 252 | throw new Error( |
| 253 | `Failed to get dependencies for project ${projectName}: ` + |
| 254 | `Unable to find project in project graph`); |
| 255 | } |
| 256 | return Array.from(adjacencies); |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * Get all (direct and transitive) dependencies of a project as an array of project names |
no outgoing calls
no test coverage detected