diff options
author | Diego Magdaleno <diegomagdaleno@protonmail.com> | 2021-05-22 16:41:48 -0500 |
---|---|---|
committer | Diego Magdaleno <diegomagdaleno@protonmail.com> | 2021-05-22 16:41:48 -0500 |
commit | 41317582fb084b240f0bbb5e978ee7f976dd5fdc (patch) | |
tree | 2a9d01034e3410caed673bb74c1b6efb7bf06a6b /src/util | |
parent | Config: New config and store classes to replace the mongo method (diff) | |
download | server-41317582fb084b240f0bbb5e978ee7f976dd5fdc.tar.xz |
Config: export getConfigPathForFile
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Config.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/Config.ts b/src/util/Config.ts index c3f7b848..7d69fb45 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts @@ -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 |