Skip to content

Commit

Permalink
fix(nx): project.targets.build.options could be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
NexZhu committed Dec 19, 2023
1 parent a25470c commit c9dc238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/nx/src/nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ export async function getNxTrueAffectedProjects(
const projects = await getNxProjects(cwd);

return projects.map(({ name, project }) => {
let tsConfig = project.targets?.build?.options.tsConfig;
let tsConfig = project.targets?.build?.options?.tsConfig;

if (tsConfig == null) {
if (!tsConfig) {
const projectRoot = join(project.sourceRoot, '..');

if (project.projectType === 'library') {
Expand Down

0 comments on commit c9dc238

Please sign in to comment.