Skip to content

Commit

Permalink
adds YARN_INSTALL_METHOD for apk (Alpine Linux) (yarnpkg#2607)
Browse files Browse the repository at this point in the history
  • Loading branch information
errm authored and mnsn committed Feb 15, 2017
1 parent 03d7c18 commit 274a430
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli/commands/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ function getUpdateCommand(): ?string {
return 'choco upgrade yarn';
}

if (YARN_INSTALL_METHOD === 'apk') {
return 'apk update && apk add -u yarn';
}

return null;
}

Expand Down

0 comments on commit 274a430

Please sign in to comment.