mirror of
https://github.com/Cameri/nostream.git
synced 2025-07-26 13:32:15 +02:00
fix: refactor to use process.cwd()
This commit is contained in:
committed by
Ricardo Arturo Cabral Mejía
parent
5a8107f73c
commit
24692955f9
@@ -1,5 +1,4 @@
|
|||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import { homedir } from 'os'
|
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import { mergeDeepRight } from 'ramda'
|
import { mergeDeepRight } from 'ramda'
|
||||||
import yaml from 'js-yaml'
|
import yaml from 'js-yaml'
|
||||||
@@ -18,7 +17,7 @@ export class SettingsStatic {
|
|||||||
static _settings: ISettings
|
static _settings: ISettings
|
||||||
|
|
||||||
public static getSettingsFileBasePath(): string {
|
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 {
|
public static getDefaultSettingsFilePath(): string {
|
||||||
|
Reference in New Issue
Block a user