Created
July 26, 2019 12:46
-
-
Save arcanis/eae0223f341072e7992b415d7e0cdad8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const locator = structUtils.makeLocator(`debug`, `npm:1.0.0`); | |
for (const pkg of project.storedPackages) { | |
const dependencies = Array.from(pkg.dependencies.values()); | |
const isDependent = dependencies.some(dependency => { | |
const resolution = project.storedResolutions.get(dependency.descriptorHash)!; | |
return resolution === locator.locatorHash; | |
}); | |
if (isDependent) { | |
console.log(`- ${structUtils.stringifyLocator(pkg)}`); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment