Skip to content

Commit

Permalink
Fix home dir resolution (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint authored Nov 8, 2024
1 parent 6ab8326 commit 108b49e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as fs from "../util/fs.js";
import slugify from "@sindresorhus/slugify"
import * as path from 'node:path'
import {Interface} from 'node:readline'
import os from 'node:os'

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

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

export function getSettingsDir(): string {
return path.join(process.env.HOME || '', '.hypermode')
return path.join(os.homedir(), ".hypermode");
}

export function getSettingsFilePath(): string {
Expand Down

0 comments on commit 108b49e

Please sign in to comment.