diff --git a/lib/manager/npm/post-update/yarn.js b/lib/manager/npm/post-update/yarn.js index 7e1672f0624cb4339ecbddd1ffcec5ea52efc3ff..6979ea9601b07a59533438ddf963666c64ce76c6 100644 --- a/lib/manager/npm/post-update/yarn.js +++ b/lib/manager/npm/post-update/yarn.js @@ -118,7 +118,8 @@ async function generateLockFile(cwd, env, config = {}, upgrades = []) { config.postUpdateOptions.includes('yarnDedupeFewer') ) { logger.info('Performing yarn dedupe fewer'); - const dedupeCommand = 'npx yarn-deduplicate@1.1.1 --strategy fewer'; + const dedupeCommand = + 'npx yarn-deduplicate@1.1.1 --strategy fewer && yarn'; const dedupeRes = await exec(dedupeCommand, { cwd, shell: true, @@ -136,7 +137,8 @@ async function generateLockFile(cwd, env, config = {}, upgrades = []) { config.postUpdateOptions.includes('yarnDedupeHighest') ) { logger.info('Performing yarn dedupe highest'); - const dedupeCommand = 'npx yarn-deduplicate@1.1.1 --strategy highest'; + const dedupeCommand = + 'npx yarn-deduplicate@1.1.1 --strategy highest && yarn'; const dedupeRes = await exec(dedupeCommand, { cwd, shell: true,