refactor(scripts): cleanup & enforce code style (#1388)

This commit is contained in:
uncenter authored and GitHub committed 2024-10-27 15:32:00 -04:00
1 parent 7db9b234c1
commit 5d74d700a2
23 files changed
+290 -270

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import PORTS_SCHEMA from "@catppuccin/catppuccin/resources/ports.schema.json" with {
type: "json",
};
import USERSTYLES_SCHEMA from "@/userstyles.schema.json" with {
type: "json",
};
import * as path from "@std/path";
const ROOT = import.meta.dirname;
if (!ROOT) throw new Error("ROOT was not located.");
/**
* Absolute path to the repository.
*/
export const REPO_ROOT = path.join(ROOT, "..");
export { PORTS_SCHEMA, USERSTYLES_SCHEMA };