From 7f8d9333a2000c23cad8b2a852e0a5fb103eb33b Mon Sep 17 00:00:00 2001 From: Timothy Miller Date: Fri, 10 Nov 2023 01:03:09 -0500 Subject: [PATCH] Fix import order and remove comments. --- packages/api/src/db/client.ts | 1 + packages/api/src/routes/user.ts | 2 +- tsconfig.base.json | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/api/src/db/client.ts b/packages/api/src/db/client.ts index 9da0df9bb..72ba3ca36 100644 --- a/packages/api/src/db/client.ts +++ b/packages/api/src/db/client.ts @@ -1,4 +1,5 @@ import { drizzle } from 'drizzle-orm/d1' + export const createDb = (d1: D1Database) => { return drizzle(d1) } diff --git a/packages/api/src/routes/user.ts b/packages/api/src/routes/user.ts index 32b8b7abe..3cfbfbac8 100644 --- a/packages/api/src/routes/user.ts +++ b/packages/api/src/routes/user.ts @@ -1,6 +1,6 @@ import { eq } from 'drizzle-orm' import { parse } from 'valibot' -import { insertUserSchema, UserTable } from '../db/schema' +import { UserTable, insertUserSchema } from '../db/schema' import { protectedProcedure, router } from '../trpc' export const userRouter = router({ diff --git a/tsconfig.base.json b/tsconfig.base.json index f26c0c0f6..5fe9cbf5e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -20,8 +20,7 @@ "experimentalDecorators": true, "useUnknownInCatchVariables": false, "preserveConstEnums": true, - // DONT DO THIS so jsdoc will remain - "removeComments": false, + "removeComments": true, "skipLibCheck": true, "sourceMap": false, "strictNullChecks": true,