Skip to content

Commit 7cf27a1

Browse files
committed
Fix bugs in manifest grouping
1 parent ffa1f40 commit 7cf27a1

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

componentDetection.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export default class ComponentDetection {
4848
core.info("Running component-detection");
4949

5050
try {
51-
await exec.exec(`ls -la`);
5251
await exec.exec(`${this.componentDetectionPath} scan --SourceDirectory ${path} --ManifestFile ${this.outputPath}`);
5352
} catch (error: any) {
5453
core.error(error);
@@ -97,9 +96,9 @@ export default class ComponentDetection {
9796
manifests.push(manifest);
9897
}
9998
if (pkg.topLevelReferrers.length == 0) {
100-
manifests.find((manifest: Manifest) => manifest.file == location.filePath)?.addDirectDependency(pkg, ComponentDetection.getDependencyScope(pkg));
99+
manifests.find((manifest: Manifest) => manifest.name == location)?.addDirectDependency(pkg, ComponentDetection.getDependencyScope(pkg));
101100
} else {
102-
manifests.find((manifest: Manifest) => manifest.file == location.filePath)?.addIndirectDependency(pkg, ComponentDetection.getDependencyScope(pkg)); }
101+
manifests.find((manifest: Manifest) => manifest.name == location)?.addIndirectDependency(pkg, ComponentDetection.getDependencyScope(pkg)); }
103102
});
104103
});
105104
return manifests;

dist/index.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)