diff --git a/api/src/helpers.ts b/api/src/helpers.ts index 1804986..0466c6c 100644 --- a/api/src/helpers.ts +++ b/api/src/helpers.ts @@ -1,4 +1,4 @@ -import type { EventAndTablo } from "@/types.ts"; +import type { EventAndTablo } from "./types.ts"; import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3"; import type { SupabaseClient } from "@supabase/supabase-js"; diff --git a/api/src/index.ts b/api/src/index.ts index cb91a10..7798c7e 100644 --- a/api/src/index.ts +++ b/api/src/index.ts @@ -1,10 +1,10 @@ import { Hono } from "hono"; import { serve } from "@hono/node-server"; import { logger } from "hono/logger"; -import { mainRouter } from "@/routers.ts"; +import { mainRouter } from "./routers.js"; import { cors } from "hono/cors"; -import { config } from "@/config.ts"; +import { config } from "./config.js"; import { run } from "graphile-worker"; import path from "path"; import { fileURLToPath } from "url"; diff --git a/api/src/middleware.ts b/api/src/middleware.ts index 6bc8007..b2a5d78 100644 --- a/api/src/middleware.ts +++ b/api/src/middleware.ts @@ -3,7 +3,7 @@ import { createClient, type User } from "@supabase/supabase-js"; import type { Context, Next } from "hono"; import nodemailer from "nodemailer"; import { StreamChat } from "stream-chat"; -import { config } from "@/config.ts"; +import { config } from "./config.js"; // Create authentication middleware export const authMiddleware = async (c: Context, next: Next) => { diff --git a/api/src/routers.ts b/api/src/routers.ts index 7a99aee..80eab74 100644 --- a/api/src/routers.ts +++ b/api/src/routers.ts @@ -1,7 +1,7 @@ import { Hono } from "hono"; -import { userRouter } from "@/user.ts"; -import { supabaseMiddleware } from "@/middleware.ts"; -import { tabloRouter } from "@/tablo.ts"; +import { userRouter } from "./user.js"; +import { supabaseMiddleware } from "./middleware.js"; +import { tabloRouter } from "./tablo.js"; export const mainRouter = new Hono<{ Bindings: { diff --git a/api/src/tablo.ts b/api/src/tablo.ts index 0c38fb4..2f8edc8 100644 --- a/api/src/tablo.ts +++ b/api/src/tablo.ts @@ -4,24 +4,24 @@ import { emailMiddleware, r2Middleware, streamChatMiddleware, -} from "@/middleware.ts"; +} from "./middleware.js"; import { PostgrestError, type SupabaseClient, type User, } from "@supabase/supabase-js"; import type { Transporter } from "nodemailer"; -import { generateToken } from "@/token.ts"; -import { config } from "@/config.ts"; -import type { Tables } from "@/database.types.ts"; +import { generateToken } from "./token.js"; +import { config } from "./config.js"; +import type { Tables } from "./database.types.ts"; import type { StreamChat } from "stream-chat"; import type { TabloInsert, EventInsertInTablo, EventAndTablo, -} from "@/types.ts"; +} from "./types.ts"; import { PutObjectCommand, type S3Client } from "@aws-sdk/client-s3"; -import { generateICSFromEvents, writeCalendarFileToR2 } from "@/helpers.ts"; +import { generateICSFromEvents, writeCalendarFileToR2 } from "./helpers.js"; export const tabloRouter = new Hono<{ Variables: { diff --git a/api/src/types.ts b/api/src/types.ts index f752378..54ccaef 100644 --- a/api/src/types.ts +++ b/api/src/types.ts @@ -3,7 +3,7 @@ import type { Tables, TablesInsert, TablesUpdate, -} from "@/database.types.ts"; +} from "./database.types.ts"; export type Tablo = Database["public"]["Tables"]["tablos"]; export type TabloInsert = Tablo["Insert"]; diff --git a/api/src/user.ts b/api/src/user.ts index d7aa652..f7c620b 100644 --- a/api/src/user.ts +++ b/api/src/user.ts @@ -1,9 +1,9 @@ import { Hono } from "hono"; -import { authMiddleware, streamChatMiddleware } from "@/middleware.ts"; +import { authMiddleware, streamChatMiddleware } from "./middleware.js"; import type { SupabaseClient, User } from "@supabase/supabase-js"; import { StreamChat } from "stream-chat"; import type { Transporter } from "nodemailer"; -import type { Tables } from "@/database.types.ts"; +import type { Tables } from "./database.types.ts"; export const userRouter = new Hono<{ Variables: { diff --git a/api/tsconfig.json b/api/tsconfig.json index 79cd88a..674e65d 100644 --- a/api/tsconfig.json +++ b/api/tsconfig.json @@ -8,14 +8,7 @@ "types": ["node"], "jsx": "react-jsx", "jsxImportSource": "hono/jsx", - "outDir": "./dist", - "declaration": true, - "emitDeclarationOnly": true, - "allowImportingTsExtensions": true, - "baseUrl": "./", - "paths": { - "@/*": ["./src/*"] - } + "outDir": "./dist" }, "exclude": ["node_modules"] }