Skip to content

Commit

Permalink
Do not duplicate parent dependencies in case of multiple composer.loc…
Browse files Browse the repository at this point in the history
…k files (#1419) (#1424)

Signed-off-by: Maxime Robert <maxime.robert@smile.fr>
  • Loading branch information
marob authored Oct 19, 2024
1 parent 160b735 commit bd06413
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4894,10 +4894,9 @@ export function createPHPBom(path, options) {
};
dependencies = mergeDependencies(
dependencies,
retMap.dependenciesList,
[pdependencies, ...retMap.dependenciesList],
parentComponent,
);
dependencies.splice(0, 0, pdependencies);
}
}
return buildBomNSData(options, pkgList, "composer", {
Expand Down
2 changes: 1 addition & 1 deletion types/lib/cli/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bd06413

Please sign in to comment.