From d8ac5ef1404812da18a53ca02eb3ade18862b38b Mon Sep 17 00:00:00 2001 From: Miles Malerba Date: Thu, 20 Mar 2025 16:10:45 +0000 Subject: [PATCH] fix(ng-dev/ts-circular-dependencies): print errors when goldens are disabled Id the circular deps golden file is disabled for the repo, print the errors directly to the console instead so they can be addressed --- ng-dev/ts-circular-dependencies/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ng-dev/ts-circular-dependencies/index.ts b/ng-dev/ts-circular-dependencies/index.ts index 79dfe1225..50d20c3bf 100644 --- a/ng-dev/ts-circular-dependencies/index.ts +++ b/ng-dev/ts-circular-dependencies/index.ts @@ -115,7 +115,10 @@ export function main( return 1; } if (cycles.length > 0) { - Log.error(`x No circular dependencies are allow within this repository.`); + Log.error( + `x No circular dependencies are allow within this repository, but circular dependencies were found:`, + ); + actual.forEach((c) => Log.error(` • ${convertReferenceChainToString(c)}`)); return 1; }