Skip to content
Snippets Groups Projects
Commit fc4d5fc0 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: add check if lerna npmClient=yarn

parent 3acda0e5
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,10 @@ async function checkMonorepos(config) { ...@@ -65,7 +65,10 @@ async function checkMonorepos(config) {
if (await platform.getFile('package-lock.json')) { if (await platform.getFile('package-lock.json')) {
logger.debug('lerna has a package-lock.json'); logger.debug('lerna has a package-lock.json');
lernaLockFile = 'npm'; lernaLockFile = 'npm';
} else if (await platform.getFile('yarn.lock')) { } else if (
lernaJson.npmClient === 'yarn' &&
(await platform.getFile('yarn.lock'))
) {
logger.debug('lerna has non-workspaces yarn'); logger.debug('lerna has non-workspaces yarn');
lernaLockFile = 'yarn'; lernaLockFile = 'yarn';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment