UNPKG

@nrwl/workspace

Version:

Smart, Fast and Extensible Build System.

22 lines 893 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateImplicitDependencies = void 0; const devkit_1 = require("@nrwl/devkit"); /** * Updates the workspace.json file by renaming the project * * @param schema The options provided to the schematic */ function updateImplicitDependencies(tree, schema) { for (const [projectName, project] of (0, devkit_1.getProjects)(tree)) { if (project.implicitDependencies) { const index = project.implicitDependencies.indexOf(schema.projectName); if (index !== -1) { project.implicitDependencies[index] = schema.newProjectName; (0, devkit_1.updateProjectConfiguration)(tree, projectName, project); } } } } exports.updateImplicitDependencies = updateImplicitDependencies; //# sourceMappingURL=update-implicit-dependencies.js.map