fix(core): do not return a default project when nxJson is undefined (#15432)

This commit is contained in:
Jason Jean 2023-03-03 15:35:44 -05:00 committed by GitHub
parent 8c1d035b0b
commit 17a0d2c085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ export class Workspaces {
});
if (matchingProject) return matchingProject;
}
return nxJson.defaultProject;
return nxJson?.defaultProject;
}
readProjectsConfigurations(opts?: {