mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix: 🐛 Add type: json specifier to all JSON imports
This commit is contained in:
parent
fa5be6bd6a
commit
e5e688a154
|
|
@ -8,7 +8,7 @@ import type { z } from "zod";
|
|||
import { apiRoute } from "@/api";
|
||||
import { markdownParse } from "~/classes/functions/status";
|
||||
import { config } from "~/config.ts";
|
||||
import manifest from "~/package.json";
|
||||
import manifest from "~/package.json" with { type: "json" };
|
||||
|
||||
export default apiRoute((app) =>
|
||||
app.get(
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { describeRoute } from "hono-openapi";
|
|||
import { resolver } from "hono-openapi/zod";
|
||||
import { apiRoute } from "@/api";
|
||||
import { config } from "~/config.ts";
|
||||
import pkg from "~/package.json";
|
||||
import pkg from "~/package.json" with { type: "json" };
|
||||
|
||||
export default apiRoute((app) =>
|
||||
app.get(
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { resolver } from "hono-openapi/zod";
|
|||
import { z } from "zod";
|
||||
import { apiRoute } from "@/api";
|
||||
import { config } from "~/config.ts";
|
||||
import manifest from "~/package.json";
|
||||
import manifest from "~/package.json" with { type: "json" };
|
||||
|
||||
export default apiRoute((app) =>
|
||||
app.get(
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { resolver } from "hono-openapi/zod";
|
|||
import { apiRoute } from "@/api";
|
||||
import { urlToContentFormat } from "@/content_types";
|
||||
import { config } from "~/config.ts";
|
||||
import pkg from "~/package.json";
|
||||
import pkg from "~/package.json" with { type: "json" };
|
||||
import { InstanceMetadataSchema } from "~/packages/sdk/schemas";
|
||||
|
||||
export default apiRoute((app) =>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { versionPlugin } from "@clerc/plugin-version";
|
|||
import { Clerc } from "clerc";
|
||||
import { searchManager } from "~/classes/search/search-manager.ts";
|
||||
import { setupDatabase } from "~/drizzle/db.ts";
|
||||
import pkg from "~/package.json";
|
||||
import pkg from "~/package.json" with { type: "json" };
|
||||
import { rebuildIndexCommand } from "./index/rebuild.ts";
|
||||
import { refetchInstanceCommand } from "./instance/refetch.ts";
|
||||
import { createUserCommand } from "./user/create.ts";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { sign } from "./crypto.ts";
|
||||
import { Collection, URICollection } from "./entities/collection.ts";
|
||||
import type { Entity } from "./entities/entity.ts";
|
||||
import { homepage, version } from "./package.json";
|
||||
import { homepage, version } from "./package.json" with { type: "json" };
|
||||
import { WebFingerSchema } from "./schemas/webfinger.ts";
|
||||
|
||||
const DEFAULT_UA = `VersiaFederationClient/${version} (+${homepage})`;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import { mediaQueue } from "~/classes/queues/media";
|
|||
import { pushQueue } from "~/classes/queues/push";
|
||||
import { relationshipQueue } from "~/classes/queues/relationships";
|
||||
import { config } from "~/config.ts";
|
||||
import pkg from "~/package.json";
|
||||
import pkg from "~/package.json" with { type: "json" };
|
||||
import type { HonoEnv } from "~/types/api";
|
||||
|
||||
export const applyToHono = (app: Hono<HonoEnv>): void => {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import * as Sentry from "@sentry/bun";
|
||||
import { env } from "bun";
|
||||
import { config } from "~/config.ts";
|
||||
import pkg from "~/package.json";
|
||||
import pkg from "~/package.json" with { type: "json" };
|
||||
|
||||
const sentryInstance =
|
||||
config.logging.sentry &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue