1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-13 14:12:41 +01:00

Config: export getConfigPathForFile

This commit is contained in:
Diego Magdaleno 2021-05-22 16:41:48 -05:00
parent c06527c073
commit 41317582fb

View File

@ -13,7 +13,7 @@ interface Options<T> {
type Deserialize<T> = (text: string) => 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 configEnvPath = envPaths(name, { suffix: "" }).config;
const configPath = path.resolve(configEnvPath, `${configFileName}${extension}`) const configPath = path.resolve(configEnvPath, `${configFileName}${extension}`)
return configPath return configPath