From a7a6d241473a38b57bf3d470f7925c0ecf8ac20c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 19:53:49 +0100 Subject: [PATCH] fix(plugins): satisfy dependency status lint --- src/plugins/status-dependencies.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/status-dependencies.ts b/src/plugins/status-dependencies.ts index 5062c944286..5eece5c00e5 100644 --- a/src/plugins/status-dependencies.ts +++ b/src/plugins/status-dependencies.ts @@ -91,13 +91,16 @@ function buildDependencyEntries(params: { const resolvedPath = params.rootDir ? findDependencyPackageDir({ fromDir: params.rootDir, name }) : undefined; - return { + const entry: PluginDependencyEntry = { name, spec, installed: resolvedPath !== undefined, optional: params.optional, - ...(resolvedPath ? { resolvedPath } : {}), }; + if (resolvedPath) { + entry.resolvedPath = resolvedPath; + } + return entry; }); }