initial commit
This commit is contained in:
7
deployPaths.ts
Normal file
7
deployPaths.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { join } from "node:path";
|
||||
|
||||
export const appDataDir = process.env.BMP_DATA_DIR;
|
||||
|
||||
export function dataPath(defaultPath: string, ...parts: string[]): string {
|
||||
return appDataDir ? join(appDataDir, ...parts) : defaultPath;
|
||||
}
|
||||
Reference in New Issue
Block a user