Make linking script work on windows server

This commit is contained in:
garronej 2024-10-24 23:47:34 +00:00
parent 7326038424
commit 2542c38c9b

View File

@ -91,7 +91,10 @@ const execYarnLink = (params: { targetModuleName?: string; cwd: string }) => {
env: { env: {
...process.env, ...process.env,
...(os.platform() === "win32" ...(os.platform() === "win32"
? { USERPROFILE: yarnGlobalDirPath } ? {
USERPROFILE: yarnGlobalDirPath,
LOCALAPPDATA: yarnGlobalDirPath
}
: { HOME: yarnGlobalDirPath }) : { HOME: yarnGlobalDirPath })
} }
}); });