This commit is contained in:
2017-05-15 15:54:09 +02:00
parent 3484575108
commit 29df49addb
4 changed files with 15 additions and 13 deletions

View File

@@ -38,8 +38,8 @@ let checkToolsAvailable = async () => {
// check for yarn
await plugins.smartshell.which('yarn').then(
() => {
plugins.smartshell.exec(`yarn config set cache-folder ${plugins.path.join(paths.cwd, '.yarn')}`)
async () => {
await plugins.smartshell.exec(`yarn config set cache-folder ${plugins.path.join(paths.cwd, '.yarn')}`)
yarnAvailable.resolve(true)
},
() => { yarnAvailable.resolve(false) }