mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-24 17:03:55 +10:00
13 lines
326 B
TypeScript
13 lines
326 B
TypeScript
import { basename, dirname, join } from "node:path";
|
|
|
|
export function getLocalDataDirectory(): string {
|
|
const cwd = process.cwd();
|
|
const parentDirectory = dirname(cwd);
|
|
|
|
if (basename(cwd) === "web" && basename(parentDirectory) === "apps") {
|
|
return join(dirname(parentDirectory), "data");
|
|
}
|
|
|
|
return join(cwd, "data");
|
|
}
|