refactor: 🚚 Explicitely add extensions to all imports

This commit is contained in:
Jesse Wierzbinski 2024-10-04 15:22:48 +02:00
parent b5b7014c00
commit b53307c824
No known key found for this signature in database
99 changed files with 168 additions and 169 deletions

View file

@ -26,7 +26,7 @@ import type { Application } from "~/classes/functions/application";
import { type AuthData, getFromHeader } from "~/classes/functions/user";
import { db } from "~/drizzle/db";
import { Challenges } from "~/drizzle/schema";
import { config } from "~/packages/config-manager/index";
import { config } from "~/packages/config-manager/index.ts";
import type { User } from "~/packages/database-interface/user";
import type { ApiRouteMetadata, HonoEnv, HttpVerb } from "~/types/api";

View file

@ -1,4 +1,4 @@
import { config } from "~/packages/config-manager/index";
import { config } from "~/packages/config-manager/index.ts";
export const oauthRedirectUri = (issuer: string) =>
new URL(`/oauth/sso/${issuer}/callback`, config.http.base_url).toString();

View file

@ -1,6 +1,6 @@
import { getLogger } from "@logtape/logtape";
import { markdownParse } from "~/classes/functions/status";
import { sentry } from "./sentry";
import { sentry } from "./sentry.ts";
export const renderMarkdownInPath = async (
path: string,

View file

@ -1,6 +1,6 @@
import * as Sentry from "@sentry/bun";
import pkg from "~/package.json";
import { config } from "~/packages/config-manager/index";
import { config } from "~/packages/config-manager/index.ts";
const sentryInstance =
config.logging.sentry.enabled &&

View file

@ -1,7 +1,7 @@
import type { OpenAPIHono } from "@hono/zod-openapi";
import type { Config } from "~/packages/config-manager/config.type";
import type { HonoEnv } from "~/types/api";
import { debugResponse } from "./api";
import { debugResponse } from "./api.ts";
export const createServer = (config: Config, app: OpenAPIHono<HonoEnv>) =>
Bun.serve({

View file

@ -5,7 +5,7 @@ import type {
import type { Status, findManyNotes } from "~/classes/functions/status";
import type { UserType, findManyUsers } from "~/classes/functions/user";
import type { db } from "~/drizzle/db";
import { config } from "~/packages/config-manager/index";
import { config } from "~/packages/config-manager/index.ts";
export async function fetchTimeline<T extends UserType | Status | Notification>(
model: