Skip to content

Commit

Permalink
fix(devkit): convert-nx-executor should read projectNodes (#18684)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder authored Aug 17, 2023
1 parent 2d08229 commit 2ff1364
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/devkit/src/utils/convert-nx-executor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { Observable } from 'rxjs';
import type { Executor, ExecutorContext } from 'nx/src/config/misc-interfaces';
import type { ProjectsConfigurations } from 'nx/src/devkit-exports';

import { requireNx } from '../../nx';

const {
Expand All @@ -23,14 +25,14 @@ export function convertNxExecutor(executor: Executor) {
(workspaces as any).readNxJson();

const promise = async () => {
const projectsConfigurations =
const projectsConfigurations: ProjectsConfigurations =
retrieveProjectConfigurationsWithAngularProjects
? {
version: 2,
projects: await retrieveProjectConfigurationsWithAngularProjects(
builderContext.workspaceRoot,
nxJsonConfiguration
),
).then((p) => p.projectNodes),
}
: // TODO(v18): remove retrieveProjectConfigurations. This is to be backwards compatible with Nx 16.5 and below.
(workspaces as any).readProjectsConfigurations({
Expand Down

1 comment on commit 2ff1364

@vercel
Copy link

@vercel vercel bot commented on 2ff1364 Aug 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.