Skip to content

Commit dbb24bf

Browse files
authored
fix: HOME env var not exist on Windows (#107)
* fix: HOME env var not exist on Windows * build: revert change on pnpm lock file
1 parent e24fb34 commit dbb24bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function buildHandler(
4040
const downloadedFiles = await download(files, workPath, meta);
4141
const entryPath = downloadedFiles[entrypoint].fsPath;
4242

43-
const HOME = assertEnv('HOME');
43+
const HOME = process.platform === 'win32' ? assertEnv('USERPROFILE') : assertEnv('HOME');
4444
const PATH = assertEnv('PATH');
4545

4646
const rustEnv: RustEnv = {

0 commit comments

Comments
 (0)