     let name: String
     var alias: String
     let originPackage: PackageIdentity
-    let parentPackage: PackageIdentity
-
-    init(name: String, alias: String, originPackage: PackageIdentity, parentPackage: PackageIdentity) {
+    let consumingPackage: PackageIdentity
+
+    init(name: String, alias: String, originPackage: PackageIdentity, consumingPackage: PackageIdentity) {
         self.name = name
         self.alias = alias
         self.originPackage = originPackage
-        self.parentPackage = parentPackage
+        self.consumingPackage = consumingPackage
     }
 }
 

    }

    // Gather and resolve module aliases specified for targets in all dependent packages
    let packageAliases = resolveModuleAliases(with: packageBuilders,
                                               onError: observabilityScope)

    // Scan and validate the dependencies
    for packageBuilder in packageBuilders {


    // Track targets that need module aliases for each package
    for packageBuilder in packageBuilders {
        for produdct in packageBuilder.package.products {
            var list = produdct.targets.map{$0.dependencies}.flatMap{$0}.compactMap{$0.target?.name}
            list.append(contentsOf: produdct.targets.map{$0.name})
            aliasTracker.addAliasesForTargets(list, product: produdct.name, package: packageBuilder.package.identity)
        }
    }

