build/lib/dependencies.ts/flatten
export function getProductionDependencies(cwd: string): FlatDependency[] {
	const result: FlatDependency[] = [];
	const deps = getYarnProductionDependencies(cwd);
	const flatten = (dep: Dependency) => { result.push({ name: dep.name, version: dep.version, path: dep.path }); dep.children.forEach(flatten); };
	deps.forEach(flatten);
	return _.uniq(result);
}