Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
canvas
/
node_modules
/
wsrun
/
build
/
Filename :
rev-deps.js
back
Copy
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.expandRevDeps = void 0; /** * For given list of packages, expand that list with all dependents on them * @param pkgs original list of packages (to be filtered) * @param pkgJsons list of packages in the workspace */ exports.expandRevDeps = (pkgs, pkgJsons) => { let index = 0; while (index < pkgs.length) { const pkg = pkgs[index]; // find the packages which have the iteratee as dependency or devDependency const found = pkgJsons .filter(p => (p.dependencies && p.dependencies[pkg]) || (p.devDependencies && p.devDependencies[pkg])) .map(p => p.name) .filter(p => pkgs.indexOf(p) === -1); pkgs = pkgs.concat(found); index++; } return pkgs; }; //# sourceMappingURL=rev-deps.js.map