From c5b1d4e4c9f679e017bc0915e3509495a26df507 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Wed, 17 Jul 2019 16:25:44 -0700 Subject: [PATCH] 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. --- bucket/yarn.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bucket/yarn.json b/bucket/yarn.json index c102aef2c9..dea8b9629c 100644 --- a/bucket/yarn.json +++ b/bucket/yarn.json @@ -13,7 +13,8 @@ "post_install": [ "yarn config set cache-folder \"$dir\\cache\"", "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": { "script": [