use of com.synopsys.integration.detectable.detectables.yarn.workspace.YarnWorkspace in project synopsys-detect by blackducksoftware.
the class YarnLockExtractor method collectWorkspaceData.
@NotNull
private YarnWorkspaces collectWorkspaceData(File dir) throws IOException {
Collection<YarnWorkspace> curLevelWorkspaces = packageJsonFiles.readWorkspacePackageJsonFiles(dir);
Collection<YarnWorkspace> allWorkspaces = new LinkedList<>(curLevelWorkspaces);
for (YarnWorkspace workspace : curLevelWorkspaces) {
Collection<YarnWorkspace> treeBranchWorkspacePackageJsons = packageJsonFiles.readWorkspacePackageJsonFiles(workspace.getWorkspacePackageJson().getDir());
allWorkspaces.addAll(treeBranchWorkspacePackageJsons);
}
return new YarnWorkspaces(allWorkspaces);
}
Aggregations