mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 21:31:48 +01:00
fix: refactor to use process.cwd()
This commit is contained in:
parent
5a8107f73c
commit
24692955f9
@ -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'
|
||||
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user