From c6fe77355707b1fbaed00c2d1c1826d8e4529d92 Mon Sep 17 00:00:00 2001 From: aericio <16523741+Aericio@users.noreply.github.com> Date: Tue, 28 May 2024 13:48:33 -1000 Subject: [PATCH] fix: remove allowImportingTsExtensions --- src/index.ts | 6 +++--- src/schema.ts | 2 +- tsconfig.json | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index cc63e50..5ee6fd9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import postgres from "postgres"; import { drizzle } from "drizzle-orm/postgres-js"; -import { cosmetics, players } from "./schema.ts"; +import { cosmetics, players } from "./schema"; /** * @param connectionString See {@link https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS Postgres Connection URIs} @@ -16,5 +16,5 @@ export default function initializeDatabase({ return { client, db }; } -export * from "./types.ts"; -export { CosmeticSchema, PlayerSchema } from "./schema.ts"; +export * from "./types"; +export { CosmeticSchema, PlayerSchema } from "./schema"; diff --git a/src/schema.ts b/src/schema.ts index dee99bc..dcff067 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -11,7 +11,7 @@ import { CosmeticLocalizedString, CosmeticRating, PlayerAvatar, -} from "./types.ts"; +} from "./types"; import { sql } from "drizzle-orm"; import { z } from "zod"; diff --git a/tsconfig.json b/tsconfig.json index 6b82e99..e7f838d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,6 @@ // Bundler mode "moduleResolution": "bundler", - "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, "noEmit": true,