Skip to content

Commit

Permalink
Also redirect "global" yarn directory
Browse files Browse the repository at this point in the history
  • Loading branch information
milang committed Jan 9, 2019
1 parent 1ffd9ec commit 6003b25
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bucket/yarn.json
Expand Up @@ -15,12 +15,15 @@
"persist": [
"cache",
"bin",
"mirror"
"mirror",
"global"
],
"post_install": [
"yarn config set cache-folder \"$dir\\cache\"",
"yarn config set yarn-offline-mirror \"$dir\\mirror\"",
"yarn config set prefix \"$dir\""
"yarn config set prefix \"$dir\"",
"yarn config set global-folder \"$dir\\global\"",
"Set-Content $env:USERPROFILE\\.yarnrc (Get-Content $env:USERPROFILE\\.yarnrc | %{ $_ -replace \"^global-folder\", \"--global-folder\" })"
],
"env_add_path": [
"bin",
Expand Down

0 comments on commit 6003b25

Please sign in to comment.