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

feat: support yarn mutex file

Adds yarn mutex file flag to cmd line if set in env
parent a900c0d6
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,10 @@ async function generateLockFile(tmpDir, env) {
cmd += ' install';
cmd += ' --ignore-scripts';
cmd += ' --ignore-engines';
cmd += process.env.YARN_MUTEX_FILE
? ` --mutex file:${process.env.YARN_MUTEX_FILE}`
: '';
// TODO: Switch to native util.promisify once using only node 8
({ stdout, stderr } = await exec(cmd, {
cwd: tmpDir,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment