Skip to content
Snippets Groups Projects
Unverified Commit 9219d345 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(yarn): run yarn again after dedupe (#3871)

parent 6c5687ba
No related branches found
Tags 18.9.1
No related merge requests found
...@@ -118,7 +118,8 @@ async function generateLockFile(cwd, env, config = {}, upgrades = []) { ...@@ -118,7 +118,8 @@ async function generateLockFile(cwd, env, config = {}, upgrades = []) {
config.postUpdateOptions.includes('yarnDedupeFewer') config.postUpdateOptions.includes('yarnDedupeFewer')
) { ) {
logger.info('Performing yarn dedupe fewer'); 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, { const dedupeRes = await exec(dedupeCommand, {
cwd, cwd,
shell: true, shell: true,
...@@ -136,7 +137,8 @@ async function generateLockFile(cwd, env, config = {}, upgrades = []) { ...@@ -136,7 +137,8 @@ async function generateLockFile(cwd, env, config = {}, upgrades = []) {
config.postUpdateOptions.includes('yarnDedupeHighest') config.postUpdateOptions.includes('yarnDedupeHighest')
) { ) {
logger.info('Performing yarn dedupe highest'); 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, { const dedupeRes = await exec(dedupeCommand, {
cwd, cwd,
shell: true, shell: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment