refactor: 🔥 Remove old config-manager symlink

This commit is contained in:
Jesse Wierzbinski 2024-08-19 14:43:54 +02:00
parent 26dc389010
commit 4a1ad9dd96
No known key found for this signature in database
77 changed files with 74 additions and 86 deletions

View file

@ -1,11 +0,0 @@
{
"name": "config-manager",
"version": "0.0.0",
"main": "index.ts",
"type": "module",
"dependencies": {
"c12": "^1.11.1",
"zod": "^3.23.8",
"zod-validation-error": "^3.3.0"
}
}

View file

@ -4,7 +4,6 @@ import type {
Attachment as ApiAttachment,
} from "@lysand-org/client/types";
import type { ContentFormat } from "@lysand-org/federation/types";
import { config } from "config-manager";
import { MediaBackendType } from "config-manager/config.type";
import {
type InferInsertModel,
@ -16,6 +15,7 @@ import {
} from "drizzle-orm";
import { db } from "~/drizzle/db";
import { Attachments } from "~/drizzle/schema";
import { config } from "~/packages/config-manager/index";
import { BaseInterface } from "./base";
export type AttachmentType = InferSelectModel<typeof Attachments>;

View file

@ -6,7 +6,6 @@ import {
} from "@lysand-org/federation";
import type { ServerMetadata } from "@lysand-org/federation/types";
import chalk from "chalk";
import { config } from "config-manager";
import {
type InferInsertModel,
type InferSelectModel,
@ -18,6 +17,7 @@ import {
} from "drizzle-orm";
import { db } from "~/drizzle/db";
import { Instances } from "~/drizzle/schema";
import { config } from "~/packages/config-manager/index";
import { BaseInterface } from "./base";
import { User } from "./user";

View file

@ -1,6 +1,5 @@
import { proxyUrl } from "@/response";
import type { RolePermission } from "@lysand-org/client/types";
import { config } from "config-manager";
import {
type InferInsertModel,
type InferSelectModel,
@ -12,6 +11,7 @@ import {
} from "drizzle-orm";
import { db } from "~/drizzle/db";
import { RoleToUsers, Roles } from "~/drizzle/schema";
import { config } from "~/packages/config-manager/index";
import { BaseInterface } from "./base";
export type RoleType = InferSelectModel<typeof Roles>;

View file

@ -1,8 +1,8 @@
import { join } from "node:path";
import { redirect } from "@/response";
import type { BunFile } from "bun";
import { config } from "config-manager";
import { retrieveUserFromToken } from "~/classes/functions/user";
import { config } from "~/packages/config-manager/index";
import type { User } from "~/packages/database-interface/user";
import { languages } from "./glitch-languages";