Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
fisgeci committed Jan 17, 2024
1 parent 3fec089 commit d351a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/package-manager/package-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class PackageService {
const draftIdByNodeId = new Map<string, string>();
nodesListToExport.forEach(node => draftIdByNodeId.set(node.workingDraftId, node.id));

const dependenciesByPackageIds = await this.getPackagesWithDependencies(draftIdByNodeId, []);
const dependenciesByPackageIds = await this.getPackagesWithDependencies(draftIdByNodeId);

nodesListToExport = nodesListToExport.map(nodeToExport => {
nodeToExport.dependencies = dependenciesByPackageIds[nodeToExport.workingDraftId] ?? [];
Expand Down Expand Up @@ -354,7 +354,7 @@ class PackageService {

nodesListToExport = await this.getNodesWithActiveVersion(nodesListToExport);
if (includeDependencies) {
const dependencyPackages = await this.getDependencyPackages(nodesListToExport, [], allPackages, [], [], versionsByNodeKey);
const dependencyPackages = await this.getDependencyPackages(nodesListToExport, [], allPackages, [], versionsByNodeKey);
nodesListToExport.push(...dependencyPackages);
}

Expand Down

0 comments on commit d351a9a

Please sign in to comment.