Skip to content

Commit

Permalink
Make linking script works on windows server
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Oct 24, 2024
1 parent 11d4b3c commit a5bc334
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/link-in-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ const execYarnLink = (params: { targetModuleName?: string; cwd: string }) => {
env: {
...process.env,
...(os.platform() === 'win32'
? { USERPROFILE: yarnGlobalDirPath }
? {
USERPROFILE: yarnGlobalDirPath,
LOCALAPPDATA: yarnGlobalDirPath
}
: { HOME: yarnGlobalDirPath })
}
});
Expand Down

0 comments on commit a5bc334

Please sign in to comment.