From 2542c38c9b3aaaace685a586e203edecf8dc33c0 Mon Sep 17 00:00:00 2001 From: garronej Date: Thu, 24 Oct 2024 23:47:34 +0000 Subject: [PATCH] Make linking script work on windows server --- scripts/link-in-app.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/link-in-app.ts b/scripts/link-in-app.ts index 6fad1afb..3dfbbd57 100644 --- a/scripts/link-in-app.ts +++ b/scripts/link-in-app.ts @@ -91,7 +91,10 @@ const execYarnLink = (params: { targetModuleName?: string; cwd: string }) => { env: { ...process.env, ...(os.platform() === "win32" - ? { USERPROFILE: yarnGlobalDirPath } + ? { + USERPROFILE: yarnGlobalDirPath, + LOCALAPPDATA: yarnGlobalDirPath + } : { HOME: yarnGlobalDirPath }) } });