Skip to content
Snippets Groups Projects
Commit 88c600b8 authored by Rhys Arkins's avatar Rhys Arkins Committed by singapore
Browse files

Fix yarn.lock detection (#128)

* Fix yarn.lock detection

Closes #110, Closes #124

* Fix for tests :)
parent 39370865
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ async function getParentBranch(branchName, config) { ...@@ -54,7 +54,7 @@ async function getParentBranch(branchName, config) {
async function getYarnLockFile(packageJson, config) { async function getYarnLockFile(packageJson, config) {
// Detect if a yarn.lock file is in use // Detect if a yarn.lock file is in use
const yarnLockFileName = path.join(path.dirname(config.packageFile), 'yarn.lock'); const yarnLockFileName = path.join(path.dirname(config.packageFile), 'yarn.lock');
if (await config.api.getFileContent(yarnLockFileName) === false) { if (!await config.api.getFileContent(yarnLockFileName)) {
return null; return null;
} }
// Copy over custom config files // Copy over custom config files
......
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