From d288779ed5a09b285b2252b0a4f5211c408be897 Mon Sep 17 00:00:00 2001 From: Lars Kappert Date: Wed, 16 Oct 2024 10:06:08 +0200 Subject: [PATCH] Exclude empty config file path arrays from debug output --- packages/knip/src/WorkspaceWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/knip/src/WorkspaceWorker.ts b/packages/knip/src/WorkspaceWorker.ts index 815b7938..3ee8ed7a 100644 --- a/packages/knip/src/WorkspaceWorker.ts +++ b/packages/knip/src/WorkspaceWorker.ts @@ -304,7 +304,7 @@ export class WorkspaceWorker { const configFilePaths = await _glob({ patterns, cwd: baseOptions.rootCwd, dir: cwd, gitignore: false }); - debugLogArray([name, plugin.title], 'config file paths', configFilePaths); + if (configFilePaths.length > 0) debugLogArray([name, plugin.title], 'config file paths', configFilePaths); const options = { ...baseOptions,