diff --git a/lib/cli/index.js b/lib/cli/index.js index 121049414..622fddb0e 100644 --- a/lib/cli/index.js +++ b/lib/cli/index.js @@ -2546,6 +2546,7 @@ export async function createNodejsBom(path, options) { if (pcs.length) { tmpParentComponent = pcs[0]; tmpParentComponent.type = "application"; + tmpParentComponent.name = "project-name" in options ? options.projectName : tmpParentComponent.name; ppurl = new PackageURL( "npm", options.projectGroup || tmpParentComponent.group,