Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect "global" yarn directory #2969

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion bucket/yarn.json
Expand Up @@ -15,9 +15,12 @@
"persist": [
"cache",
"bin",
"mirror"
"mirror",
"global"
],
"post_install": [
"yarn config set global-folder \"$dir\\global\"",
"Set-Content $env:USERPROFILE\\.yarnrc (Get-Content $env:USERPROFILE\\.yarnrc | %{ $_ -replace \"^global-folder\", \"--global-folder\" })",
"yarn config set cache-folder \"$dir\\cache\"",
"yarn config set yarn-offline-mirror \"$dir\\mirror\"",
"yarn config set prefix \"$dir\""
Expand Down