Skip to content

Commit

Permalink
fix: refactor to use process.cwd()
Browse files Browse the repository at this point in the history
  • Loading branch information
antonleviathan authored and cameri committed Feb 2, 2023
1 parent 5a8107f commit 2469295
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/settings.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import fs from 'fs'
import { homedir } from 'os'
import { join } from 'path'
import { mergeDeepRight } from 'ramda'
import yaml from 'js-yaml'
Expand All @@ -18,7 +17,7 @@ export class SettingsStatic {
static _settings: ISettings

public static getSettingsFileBasePath(): string {
return process.env.NOSTR_CONFIG_DIR ?? join(homedir(), '.nostr')
return process.env.NOSTR_CONFIG_DIR ?? join(process.cwd(), '.nostr')
}

public static getDefaultSettingsFilePath(): string {
Expand Down

0 comments on commit 2469295

Please # to comment.