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

Method getModuleByProjectName

lib/graph/Workspace.js:101–104  ·  view source on GitHub ↗

* For a given project name (e.g. the value of the metadata.name property in a ui5.yaml), * returns a [Module]{@ui5/project/graph/Module} instance or undefined depending on whether the project * has been found in the configured dependency-management resolution paths of t

(projectName)

Source from the content-addressed store, hash-verified

99 * Module instance, or <code>undefined</code> if none is found
100 */
101 async getModuleByProjectName(projectName) {
102 const {projectNameMap} = await this._getResolvedModules();
103 return projectNameMap.get(projectName);
104 }
105
106 /**
107 * For a given node id (e.g. the value of the name property in a package.json),

Callers 2

_addProjectToGraphMethod · 0.80
Workspace.jsFile · 0.80

Calls 1

_getResolvedModulesMethod · 0.95

Tested by

no test coverage detected