mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 13:14:06 +01:00
Config: export getConfigPathForFile
This commit is contained in:
parent
c06527c073
commit
41317582fb
@ -13,7 +13,7 @@ interface Options<T> {
|
||||
|
||||
type Deserialize<T> = (text: string) => T;
|
||||
|
||||
function getConfigPath(name: string, configFileName: string, extension: string): string {
|
||||
export function getConfigPathForFile(name: string, configFileName: string, extension: string): string {
|
||||
const configEnvPath = envPaths(name, { suffix: "" }).config;
|
||||
const configPath = path.resolve(configEnvPath, `${configFileName}${extension}`)
|
||||
return configPath
|
||||
|
Loading…
Reference in New Issue
Block a user