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

Method getModules

lib/graph/Workspace.js:85–89  ·  view source on GitHub ↗

* Returns an array of [Module]{@ui5/project/graph/Module} instances found in the configured * dependency-management resolution paths of this workspace, sorted by module ID. * * @public * @returns {Promise<@ui5/project/graph/Module[]>} * Array of Module instances sorted by module ID

()

Source from the content-addressed store, hash-verified

83 * Array of Module instances sorted by module ID
84 */
85 async getModules() {
86 const {moduleIdMap} = await this._getResolvedModules();
87 const sortedMap = new Map([...moduleIdMap].sort((a, b) => String(a[0]).localeCompare(b[0])));
88 return Array.from(sortedMap.values());
89 }
90
91 /**
92 * For a given project name (e.g. the value of the <code>metadata.name</code> property in a ui5.yaml),

Callers 2

Workspace.jsFile · 0.80

Calls 1

_getResolvedModulesMethod · 0.95

Tested by

no test coverage detected