Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyMitch committed Jul 10, 2024
1 parent 39bd21f commit 173df4f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/helpers/npm-audit/find-indirect-vulnerable-deps.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ const findIndirectVulnerableDependencies = async (
return { ...auditResult, parentDependencies: {} };
}

const packageLockPath = path.join(
process.cwd(),
path.resolve(__dirname, `../../../${directoryPath}/package-lock.json`)
const packageLockPath = path.resolve(
__dirname,
`../../../${directoryPath}/package-lock.json`
);

if (!fs.existsSync(packageLockPath)) {
throw new Error("package-lock.json not found in the current directory.");
}
Expand Down

0 comments on commit 173df4f

Please sign in to comment.