From 69456d49bf45e222dd0474fa9cfb420f3bdb0830 Mon Sep 17 00:00:00 2001 From: Leo Goetz Date: Mon, 18 May 2026 16:09:01 +0200 Subject: feat: check only dirs --- src/actions/checkDependencies.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/actions/checkDependencies.ts b/src/actions/checkDependencies.ts index 9766fa4..033a325 100644 --- a/src/actions/checkDependencies.ts +++ b/src/actions/checkDependencies.ts @@ -12,13 +12,16 @@ export async function checkDependencies() { const spinner = ora("Getting all Project Data").start(); try { - const dirs = await fs.readdir(config.path); + const entries = await fs.readdir(config.path, { withFileTypes: true }); - for (let dir of dirs) { - let dirFullPath = `${config.path}${dir}`; + for (let entry of entries) { + if (!entry.isDirectory()) { + continue; + } + let dirFullPath = `${config.path}${entry.name}`; const projectDir = await fs.readdir(dirFullPath); if (projectDir.includes("package.json")) { - projects.push(getAuditPromise(dirFullPath, dir, spinner)); + projects.push(getAuditPromise(dirFullPath, entry.name, spinner)); } } -- cgit v1.3.1