UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

19 lines (18 loc) 691 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.applyImplicitDependencies = applyImplicitDependencies; function applyImplicitDependencies(projects, builder) { Object.keys(projects).forEach((source) => { const p = projects[source]; if (p.implicitDependencies && p.implicitDependencies.length > 0) { p.implicitDependencies.forEach((target) => { if (target.startsWith('!')) { builder.removeDependency(source, target.slice(1)); } else { builder.addImplicitDependency(source, target); } }); } }); }