Skip to content

Commit

Permalink
fix(core): handle undefined target defaults (#18044)
Browse files Browse the repository at this point in the history
(cherry picked from commit 92926b9)
  • Loading branch information
leosvelperez authored and FrozenPandaz committed Jul 10, 2023
1 parent 13aa3be commit 5e8f9f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nx/src/tasks-runner/create-task-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,10 @@ export function createTaskGraph(
}

export function mapTargetDefaultsToDependencies(
defaults: TargetDefaults
defaults: TargetDefaults | undefined
): TargetDependencies {
const res = {};
Object.keys(defaults).forEach((k) => {
Object.keys(defaults ?? {}).forEach((k) => {
res[k] = defaults[k].dependsOn;
});

Expand Down

0 comments on commit 5e8f9f4

Please sign in to comment.