Skip to content

Commit

Permalink
fix(core): prebuild script fails if no module boundaries rule is present
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Dec 11, 2021
1 parent fd90dd5 commit bff34d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/tasks/check-module-boundaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function loadModuleBoundaries(
}),
);
const [, moduleBoundaryConfig] =
result.rules['@nrwl/nx/enforce-module-boundaries'];
result.rules['@nrwl/nx/enforce-module-boundaries'] || [];
return moduleBoundaryConfig?.depConstraints ?? [];
} else {
return configured;
Expand Down

0 comments on commit bff34d0

Please sign in to comment.