Yarn: Re-Add Prefix Global Directory Argument (#232)

"Prefix" was changed to "Global-Folder" but "Prefix" is still required for global tools to set up their commands into the correct location rather than localappdata. Example is azure-functions-core-tools.

Both options can be specified concurrently and safely.
This commit is contained in:
Justin Grote 2019-07-17 16:25:44 -07:00 committed by Ross Smith II
parent f0bdeeb9b3
commit c5b1d4e4c9

View File

@ -13,7 +13,8 @@
"post_install": [ "post_install": [
"yarn config set cache-folder \"$dir\\cache\"", "yarn config set cache-folder \"$dir\\cache\"",
"yarn config set yarn-offline-mirror \"$dir\\mirror\"", "yarn config set yarn-offline-mirror \"$dir\\mirror\"",
"yarn config set global-folder \"$dir\\global\"" "yarn config set global-folder \"$dir\\global\"",
"yarn config set prefix \"$dir\\global\""
], ],
"uninstaller": { "uninstaller": {
"script": [ "script": [