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

Method _getBuildManifestConfigurations

lib/graph/Module.js:378–392  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

376 }
377
378 async _getBuildManifestConfigurations() {
379 const buildManifestMetadata = await this._readBuildManifest();
380
381 if (!buildManifestMetadata) {
382 log.verbose(`Could not find any build manifest in module ${this.getId()}`);
383 return [];
384 }
385 log.verbose(`Configuration for module ${this.getId()} is provided in build manifest`);
386
387 // This function is expected to return the configuration of a project, so we add the buildManifest metadata
388 // to a temporary attribute of the project configuration and retrieve it later for Specification creation
389 const config = buildManifestMetadata.project;
390 config._buildManifest = buildManifestMetadata.buildManifest;
391 return [this._normalizeAndApplyShims(config)];
392 }
393
394 async _readBuildManifest() {
395 const reader = this.getReader();

Callers 1

_getConfigurationsMethod · 0.95

Calls 3

_readBuildManifestMethod · 0.95
getIdMethod · 0.95

Tested by

no test coverage detected