From bff34d05ec577129ffd52017c6f6abd625a81ae2 Mon Sep 17 00:00:00 2001 From: AgentEnder Date: Fri, 10 Dec 2021 17:47:50 -0600 Subject: [PATCH] fix(core): prebuild script fails if no module boundaries rule is present --- packages/core/src/tasks/check-module-boundaries.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/tasks/check-module-boundaries.ts b/packages/core/src/tasks/check-module-boundaries.ts index 0d804a5c..7e3c5a12 100644 --- a/packages/core/src/tasks/check-module-boundaries.ts +++ b/packages/core/src/tasks/check-module-boundaries.ts @@ -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;