Skip to content

Commit

Permalink
fix(core): create different dummy tasks for different parent tasks an…
Browse files Browse the repository at this point in the history
…d dependency targets
  • Loading branch information
FrozenPandaz committed Nov 13, 2024
1 parent dbaeb86 commit bd4a68e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/nx/src/tasks-runner/create-task-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,13 @@ export class ProcessTasks {
);
}
} else {
// Create a dummy task for task.target.project... which simulates if depProject had dependencyConfig.target
const dummyId = this.getId(
depProject.name,
task.target.target + DUMMY_TASK_TARGET,
task.target.project +
'__' +
dependencyConfig.target +
DUMMY_TASK_TARGET,
undefined
);
this.dependencies[task.id].push(dummyId);
Expand Down

0 comments on commit bd4a68e

Please sign in to comment.