Skip to content

Commit

Permalink
fix(core): do not return a default project when nxJson is undefined (#…
Browse files Browse the repository at this point in the history
…15432)

(cherry picked from commit 17a0d2c)
  • Loading branch information
FrozenPandaz committed Mar 3, 2023
1 parent 3e6f222 commit 2555490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/config/workspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class Workspaces {
});
if (matchingProject) return matchingProject;
}
return nxJson.defaultProject;
return nxJson?.defaultProject;
}

readProjectsConfigurations(opts?: {
Expand Down

0 comments on commit 2555490

Please sign in to comment.