lune-packaging/package/js/consts.ts

13 lines
315 B
TypeScript
Raw Normal View History

import { parse as parseToml } from "jsr:@std/toml";
import * as path from "jsr:@std/path";
export const BASE_PATH = path.dirname(path.fromFileUrl(import.meta.url));
export default parseToml(
2024-06-19 14:08:00 +01:00
Deno.readTextFileSync(path.join(BASE_PATH, "consts.toml")),
) as {
2024-06-19 14:08:00 +01:00
name: string;
api_url: string;
version: string;
};