diff --git a/lib/workspaces/pnpm-workspaces-parser.ts b/lib/workspaces/pnpm-workspaces-parser.ts index 864997e..6b477e8 100644 --- a/lib/workspaces/pnpm-workspaces-parser.ts +++ b/lib/workspaces/pnpm-workspaces-parser.ts @@ -152,7 +152,7 @@ export async function processPnpmWorkspaces( ); const project: ScannedProjectCustom = { packageManager: 'pnpm', - targetFile: pathUtil.relative(rootDir, packageJson.fileName), + targetFile: pathUtil.relative(root, packageJson.fileName), depGraph: res as any, plugin: { name: 'snyk-nodejs-lockfile-parser',