Skip to content

Commit

Permalink
docs(core): add comment to print affected change;
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Oct 3, 2022
1 parent 0fbff69 commit 4ac551e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nx/src/command-line/print-affected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ async function createTasks(
function serializeProjectGraph(projectGraph: ProjectGraph) {
const nodes = Object.values(projectGraph.nodes).map((n) => n.name);
const dependencies = {};
// we don't need external dependencies' dependencies for print-affected
// having them included makes the output unreadable
Object.keys(projectGraph.dependencies).forEach((key) => {
if (!key.startsWith('npm:')) {
dependencies[key] = projectGraph.dependencies[key];
Expand Down

0 comments on commit 4ac551e

Please sign in to comment.