diff --git a/src/main/ts/lockfile/v2.ts b/src/main/ts/lockfile/v2.ts index 1a9e9af..f03cb02 100644 --- a/src/main/ts/lockfile/v2.ts +++ b/src/main/ts/lockfile/v2.ts @@ -108,7 +108,13 @@ export const audit = ( }, }, } - const _flags = formatFlags(mapFlags(flags, mapping), 'groups', 'verbose') + const _flags = formatFlags( + mapFlags(flags, mapping), + 'exclude', + 'ignore', + 'groups', + 'verbose', + ) const report = invoke( bins.yarn, ['npm', 'audit', '--all', '--json', '--recursive', ..._flags], diff --git a/src/main/ts/stages.ts b/src/main/ts/stages.ts index b0d9a63..7aac475 100644 --- a/src/main/ts/stages.ts +++ b/src/main/ts/stages.ts @@ -163,7 +163,9 @@ export const npmAuditFix: TCallback = ({ temp, flags, bins }) => { { ...defaultFlags, ...flags }, 'audit-level', 'dry-run', + 'exclude', 'force', + 'ignore', 'loglevel', 'legacy-peer-deps', 'only',