We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f44ebe commit 7b3601cCopy full SHA for 7b3601c
1 file changed
src/commands/cdxgen/run-cyclonedx.ts
@@ -23,9 +23,10 @@ const nodejsPlatformTypes = new Set([
23
'typescript'
24
])
25
26
-export async function runCycloneDX(yargv: any) {
+export async function runCycloneDX(yargvWithYes: any) {
27
let cleanupPackageLock = false
28
- const yesArgs = yargv.yes ? ['--yes'] : []
+ const { yes, ...yargv } = { __proto__: null, ...yargvWithYes }
29
+ const yesArgs = yes ? ['--yes'] : []
30
if (
31
yargv.type !== YARN &&
32
nodejsPlatformTypes.has(yargv.type) &&
0 commit comments