Skip to content

Commit 8059014

Browse files
committed
Attempting to fix manifest duplication
1 parent f45d764 commit 8059014

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

componentDetection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default class ComponentDetection {
9191
// Check the locationsFoundAt for every package and add each as a manifest
9292
packages.forEach(async (pkg: ComponentDetectionPackage) => {
9393
pkg.locationsFoundAt.forEach(async (location: any) => {
94-
if (!manifests[location]) {
94+
if (!manifests.find((manifest: Manifest) => manifest.name == location)) {
9595
const manifest = new Manifest(location, location);
9696
manifests.push(manifest);
9797
}

dist/index.js

Lines changed: 1 addition & 1 deletion
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)