Skip to content

Commit

Permalink
fix(core): targets referred to by targetDependencies should be option…
Browse files Browse the repository at this point in the history
…al by default (#9344)
  • Loading branch information
AgentEnder authored and FrozenPandaz committed Mar 21, 2022
1 parent 67ed0b4 commit 1ff9cb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/workspace/src/tasks-runner/run-command.ts
Expand Up @@ -3,6 +3,7 @@ import { join } from 'path';
import { appRootPath } from 'nx/src/utils/app-root';
import type {
NxJsonConfiguration,
ProjectConfiguration,
ProjectGraph,
ProjectGraphProjectNode,
TargetDependencyConfig,
Expand Down Expand Up @@ -347,7 +348,7 @@ export function createTask({
}

function addTasksForProjectDependencyConfig(
project: ProjectGraphProjectNode,
project: ProjectGraphProjectNode<ProjectConfiguration>,
{
target,
configuration,
Expand Down Expand Up @@ -428,7 +429,7 @@ function addTasksForProjectDependencyConfig(
}
}
}
} else {
} else if (projectHasTarget(project, dependencyConfig.target)) {
addTasksForProjectTarget(
{
project,
Expand Down

0 comments on commit 1ff9cb3

Please sign in to comment.