From c1e3fc9a3ed615afe6e143ee40218603458a7ba8 Mon Sep 17 00:00:00 2001 From: Mike Maietta Date: Fri, 20 Sep 2024 09:58:30 -0700 Subject: [PATCH] fix linting --- test/src/helpers/checkDeps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/helpers/checkDeps.ts b/test/src/helpers/checkDeps.ts index 39013a0945f..7c2d7408b9e 100644 --- a/test/src/helpers/checkDeps.ts +++ b/test/src/helpers/checkDeps.ts @@ -28,10 +28,10 @@ async function check(projectDir: string, devPackageData: any): Promise if (unusedDependencies.length > 0) { // Check root for unused deps (which could be cloned to any folder name, so we check basename of cwd) if (packageName === path.basename(process.cwd())) { - unusedDependencies = result.dependencies.filter(it => it !== "dmg-license") + unusedDependencies = unusedDependencies.filter(it => it !== "dmg-license") } if (packageName === "electron-builder") { - unusedDependencies = result.dependencies.filter(it => it !== "dmg-builder") + unusedDependencies = unusedDependencies.filter(it => it !== "dmg-builder") } if (unusedDependencies.length > 0) { console.error(`${chalk.bold(packageName)} Unused dependencies: ${JSON.stringify(unusedDependencies, null, 2)}`)