MCPcopy Index your code
hub / github.com/SAP/ui5-project / join

Method join

lib/graph/ProjectGraph.js:485–507  ·  view source on GitHub ↗

* Join another project graph into this one. * Projects and extensions which already exist in this graph will cause an error to be thrown * * @public * @param {@ui5/project/graph/ProjectGraph} projectGraph Project Graph to merge into this one

(projectGraph)

Source from the content-addressed store, hash-verified

483 * @param {@ui5/project/graph/ProjectGraph} projectGraph Project Graph to merge into this one
484 */
485 join(projectGraph) {
486 try {
487 this._checkSealed();
488 if (!projectGraph.isSealed()) {
489 // Seal input graph to prevent further modification
490 log.verbose(
491 `Sealing project graph with root project ${projectGraph._rootProjectName} ` +
492 `before joining it into project graph with root project ${this._rootProjectName}...`);
493 projectGraph.seal();
494 }
495 mergeMap(this._projects, projectGraph._projects);
496 mergeMap(this._extensions, projectGraph._extensions);
497 mergeMap(this._adjList, projectGraph._adjList);
498 mergeMap(this._optAdjList, projectGraph._optAdjList);
499
500 this._hasUnresolvedOptionalDependencies =
501 this._hasUnresolvedOptionalDependencies || projectGraph._hasUnresolvedOptionalDependencies;
502 } catch (err) {
503 throw new Error(
504 `Failed to join project graph with root project ${projectGraph._rootProjectName} into ` +
505 `project graph with root project ${this._rootProjectName}: ${err.message}`);
506 }
507 }
508
509 // Only to be used by @ui5/builder tests to inject its version of the taskRepository
510 setTaskRepository(taskRepository) {

Callers 15

formatErrorsMethod · 0.80
formatErrorMethod · 0.80
formatMessageMethod · 0.80
constructorMethod · 0.80
getSourcePathMethod · 0.80
getReaderMethod · 0.80
getSourcePathMethod · 0.80
getSourcePathMethod · 0.80
_getTestReaderMethod · 0.80
_getImplementationMethod · 0.80
getMiddlewareMethod · 0.80

Calls 4

_checkSealedMethod · 0.95
mergeMapFunction · 0.85
isSealedMethod · 0.80
sealMethod · 0.80

Tested by

no test coverage detected