We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8570072 commit 85f599bCopy full SHA for 85f599b
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