1.1.1Updated a month ago
import { existsSync } from "jsr:@std/fs/exists";
import { get_meta_path } from "./utils/meta_path.ts";

export const CLI_VERSION = '0.3.0';
export const HOST = 'viapak.xyz';
export const HOST_URL = `https://${HOST}`;

export const VIAPAK_META_PATH = get_meta_path();

if(!existsSync(VIAPAK_META_PATH, { isDirectory: true })) {
  Deno.mkdirSync(VIAPAK_META_PATH);
}

export const [ TOKEN ] = Deno.env.get('DENO_AUTH_TOKENS')?.split('@') ?? '';