Skip to content

Commit

Permalink
fix(devkit): ensure readTargetOptions is compatible with nx supported…
Browse files Browse the repository at this point in the history
… range (#15296)
  • Loading branch information
leosvelperez committed Feb 27, 2023
1 parent 3d4f590 commit 50c0dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/devkit/src/executors/read-target-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function readTargetOptions<T = any>(
{ project, target, configuration }: Target,
context: ExecutorContext
): T {
const projectConfiguration = context.projectGraph.nodes[project].data;
const projectConfiguration = context.workspace.projects[project];
const targetConfiguration = projectConfiguration.targets[target];

const ws = new Workspaces(context.root);
Expand All @@ -24,7 +24,7 @@ export function readTargetOptions<T = any>(

const defaultProject = ws.calculateDefaultProjectName(
context.cwd,
context.projectsConfigurations,
{ version: 2, projects: context.workspace.projects },
context.nxJsonConfiguration
);

Expand Down

0 comments on commit 50c0dac

Please sign in to comment.