mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-30 05:04:13 +00:00
Config: export getConfigPathForFile
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user