-
-
Notifications
You must be signed in to change notification settings - Fork 28
feat: set devDependencies component.scope to excluded
#1374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
89bfd95
ed53d46
298f07e
9068fa3
6d4c600
6e00988
ffe3f02
5a0fc9d
462dddd
a0b2dd5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -277,9 +277,15 @@ export class BomBuilder { | |
| } else { | ||
| bom.serialNumber = Utils.BomUtility.randomSerialNumber() | ||
| bom.metadata.timestamp = new Date() | ||
| bom.metadata.properties.add( | ||
| new Models.Property( | ||
| PropertyNames.BomReproducible, | ||
| PropertyValueBool.False | ||
| ) | ||
| ) | ||
| } | ||
| // endregion metadata | ||
|
|
||
| // endregion metadata | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to be an unintended change. |
||
| // region components | ||
| if (this.flattenComponents) { | ||
| for (const c of allComponents.values()) { | ||
|
|
@@ -479,11 +485,14 @@ export class BomBuilder { | |
| }) | ||
| } | ||
|
|
||
| if (isExcluded) { | ||
| component.scope = Enums.ComponentScope.Excluded | ||
| } else if (isOptional) { | ||
| component.scope = Enums.ComponentScope.Optional | ||
| } | ||
| if (isExcluded) { | ||
| component.scope = Enums.ComponentScope.Excluded | ||
| } else if (isOptional) { | ||
| component.scope = Enums.ComponentScope.Optional | ||
| } else if (data.dev === true || data.devOptional === true) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lets have a const for the term |
||
| component.scope = Enums.ComponentScope.Excluded | ||
| } | ||
|
|
||
|
|
||
| // region properties | ||
| if (data.dev === true || data.devOptional === true) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be an unintended change.
Please revert