Skip to content

Commit 85f599b

Browse files
committed
Remove yes from yargv for cdxgen params
1 parent 8570072 commit 85f599b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/commands/cdxgen/run-cyclonedx.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ const nodejsPlatformTypes = new Set([
2323
'typescript'
2424
])
2525

26-
export async function runCycloneDX(yargv: any) {
26+
export async function runCycloneDX(yargvWithYes: any) {
2727
let cleanupPackageLock = false
28-
const yesArgs = yargv.yes ? ['--yes'] : []
28+
const { yes, ...yargv } = { __proto__: null, ...yargvWithYes }
29+
const yesArgs = yes ? ['--yes'] : []
2930
if (
3031
yargv.type !== YARN &&
3132
nodejsPlatformTypes.has(yargv.type) &&

0 commit comments

Comments
 (0)