Remove leading slash from root manifests

This causes issues with GitHub dependency Graph
This commit is contained in:
Lewis Jones
2025-07-09 11:39:47 +01:00
parent 64db6d9d15
commit b2779b0030
2 changed files with 11 additions and 12 deletions
-2
View File
@@ -283,8 +283,6 @@ export default class ComponentDetection {
for (const absPath in dependencyGraphs) {
// Make the path relative to the baseDir
let relPath = path.relative(baseDir, absPath).replace(/\\/g, '/');
// Ensure leading slash to represent repo root
if (!relPath.startsWith('/')) relPath = '/' + relPath;
normalized[relPath] = dependencyGraphs[absPath];
}
return normalized;