diff --git a/bucket/yarn.json b/bucket/yarn.json index d60d4ddef8..d9f5514745 100644 --- a/bucket/yarn.json +++ b/bucket/yarn.json @@ -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",