Skip to content

Commit bff34d0

Browse files
committed
fix(core): prebuild script fails if no module boundaries rule is present
1 parent fd90dd5 commit bff34d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/tasks/check-module-boundaries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export async function loadModuleBoundaries(
7979
}),
8080
);
8181
const [, moduleBoundaryConfig] =
82-
result.rules['@nrwl/nx/enforce-module-boundaries'];
82+
result.rules['@nrwl/nx/enforce-module-boundaries'] || [];
8383
return moduleBoundaryConfig?.depConstraints ?? [];
8484
} else {
8585
return configured;

0 commit comments

Comments
 (0)