Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 108b49e

Browse files
Fix home dir resolution (#41)
1 parent 6ab8326 commit 108b49e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as fs from "../util/fs.js";
55
import slugify from "@sindresorhus/slugify"
66
import * as path from 'node:path'
77
import {Interface} from 'node:readline'
8+
import os from 'node:os'
89

910
import {Org, Project} from '../util/types.js'
1011

@@ -96,7 +97,7 @@ export async function confirmExistingProjectLink(): Promise<boolean> {
9697
}
9798

9899
export function getSettingsDir(): string {
99-
return path.join(process.env.HOME || '', '.hypermode')
100+
return path.join(os.homedir(), ".hypermode");
100101
}
101102

102103
export function getSettingsFilePath(): string {

0 commit comments

Comments
 (0)