19 lines
543 B
TypeScript

import { dirname, fromFileUrl, join } from "@std/path";
const here = dirname(fromFileUrl(import.meta.url));
/** ost-campaign repository root (parent of tools/) */
export const REPO_ROOT = join(here, "..", "..");
export const DEFAULT_INVENTORY_PATH = join(
REPO_ROOT,
"data",
"campaign.inventory.json",
);
export const DEFAULT_DIST_DIR = join(REPO_ROOT, "dist");
export const DEFAULT_BS_MANAGER_CAMPAIGNS =
Deno.env.get("BS_MANAGER_CUSTOM_CAMPAIGNS") ??
"/home/pleb/.local/share/BSManager/BSInstances/1.40.8/CustomCampaigns/";