From b52f05e9e323d909b52238fb388b892d3b39ea18 Mon Sep 17 00:00:00 2001 From: Miles Malerba Date: Wed, 19 Feb 2025 01:21:17 +0000 Subject: [PATCH] feat(ng-dev/ts-circular-dependencies): make golden file optional The framework repo currently has no circular dependencies and does not allow new ones. This change makes the golden file optional so that framework can remove its empty golden file & associated pullapprove config --- ng-dev/ts-circular-dependencies/config.ts | 4 ++-- ng-dev/ts-circular-dependencies/index.ts | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ng-dev/ts-circular-dependencies/config.ts b/ng-dev/ts-circular-dependencies/config.ts index fc6a20f89..7f9446a7b 100644 --- a/ng-dev/ts-circular-dependencies/config.ts +++ b/ng-dev/ts-circular-dependencies/config.ts @@ -23,7 +23,7 @@ export interface CircularDependenciesTestConfig extends CircularDependenciesPars /** Base directory used for shortening paths in the golden file. */ baseDir: string; /** Path to the golden file that is used for checking and approving. */ - goldenFile: string; + goldenFile?: string; /** Glob that resolves source files which should be checked. */ glob: string; /** @@ -81,7 +81,7 @@ export async function loadTestConfig(configPath: string): Promise