Skip to content

Commit

Permalink
fix(core): skip transitive deps on package json creation (#12851)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Oct 27, 2022
1 parent 9bdc2ca commit c0e5fb6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/workspace/src/utilities/create-package-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ function findAllNpmDeps(
if (node) {
list[node.data.packageName] = node.data.version;
recursivelyCollectPeerDependencies(node.name, graph, list);
} else {
// we are not interested in the dependencies of external projects
graph.dependencies[projectName]?.forEach((dep) => {
findAllNpmDeps(dep.target, graph, list, seen);
});
}
graph.dependencies[projectName]?.forEach((dep) => {
findAllNpmDeps(dep.target, graph, list, seen);
});

return list;
}
Expand Down

1 comment on commit c0e5fb6

@vercel
Copy link

@vercel vercel bot commented on c0e5fb6 Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx.dev
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.