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) 813 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTouchedProjects = void 0; const lock_file_changes_1 = require("./lock-file-changes"); const npm_packages_1 = require("./npm-packages"); const tsconfig_json_changes_1 = require("./tsconfig-json-changes"); const getTouchedProjects = (touchedFiles, nodes, nxJson, packageJson, graph) => { const touchedProjects = new Set(); [ lock_file_changes_1.getTouchedProjectsFromLockFile, npm_packages_1.getTouchedNpmPackages, tsconfig_json_changes_1.getTouchedProjectsFromTsConfig, ].forEach((fn) => { fn(touchedFiles, nodes, nxJson, packageJson, graph).forEach((p) => touchedProjects.add(p)); }); return Array.from(touchedProjects); }; exports.getTouchedProjects = getTouchedProjects;