mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-08 11:49:10 +00:00
feat(consts): move constants from toml into module
This commit is contained in:
parent
212a249c36
commit
a5ed0c9fb8
2 changed files with 5 additions and 15 deletions
|
@ -1,3 +0,0 @@
|
||||||
name = "lune"
|
|
||||||
version = "0.8.5"
|
|
||||||
api_url = "https://api.github.com/repos/lune-org/lune/releases"
|
|
|
@ -1,12 +1,5 @@
|
||||||
import { parse as parseToml } from "jsr:@std/toml";
|
export default {
|
||||||
import * as path from "jsr:@std/path";
|
name: "lune",
|
||||||
|
version: "0.8.5",
|
||||||
export const BASE_PATH = path.dirname(path.fromFileUrl(import.meta.url));
|
api_url: "https://api.github.com/repos/lune-org/lune/releases"
|
||||||
|
} as const;
|
||||||
export default parseToml(
|
|
||||||
Deno.readTextFileSync(path.join(BASE_PATH, "consts.toml")),
|
|
||||||
) as {
|
|
||||||
name: string;
|
|
||||||
api_url: string;
|
|
||||||
version: string;
|
|
||||||
};
|
|
Loading…
Reference in a new issue