Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/lib/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ const install = async (yarn, cwd, packages, env) => {

// pass null to use yarn only if yarn.lock is present
if (!yarn) {
try { yarn = await fs.stat(path.resolve(cwd, 'yarn.lock')).isFile(); }
try {
let stat = await fs.stat(path.resolve(cwd, 'yarn.lock'));
yarn = stat.isFile();
}
catch (e) { yarn = false; }
}

Expand Down