mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-11 01:15:40 +00:00
Config: export getConfigPathForFile
This commit is contained in:
@@ -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