1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.updateImplicitDependencies = void 0;
|
4 | const devkit_1 = require("@nrwl/devkit");
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | function updateImplicitDependencies(tree, schema) {
|
11 | for (const [projectName, project] of (0, devkit_1.getProjects)(tree)) {
|
12 | if (project.implicitDependencies) {
|
13 | const index = project.implicitDependencies.indexOf(schema.projectName);
|
14 | if (index !== -1) {
|
15 | project.implicitDependencies[index] = schema.newProjectName;
|
16 | (0, devkit_1.updateProjectConfiguration)(tree, projectName, project);
|
17 | }
|
18 | }
|
19 | }
|
20 | }
|
21 | exports.updateImplicitDependencies = updateImplicitDependencies;
|
22 |
|
\ | No newline at end of file |