diff --git a/apps/express-template/src/routes/products.ts b/apps/express-template/src/routes/products.ts index 18d762e..ff8fe3a 100644 --- a/apps/express-template/src/routes/products.ts +++ b/apps/express-template/src/routes/products.ts @@ -1,5 +1,5 @@ import { Router } from "express"; -import { createProduct, getProducts } from "@repo/db/index.ts"; +import { createProduct, getProducts } from "@repo/db/index"; const router = Router(); diff --git a/apps/express-template/src/routes/users.ts b/apps/express-template/src/routes/users.ts index 1c3f702..1271b5c 100644 --- a/apps/express-template/src/routes/users.ts +++ b/apps/express-template/src/routes/users.ts @@ -1,5 +1,5 @@ import { Router } from "express"; -import { getUsers, createUser } from "@repo/db/index.ts"; +import { getUsers, createUser } from "@repo/db/index"; import { randomUUID } from "crypto"; const router = Router(); diff --git a/apps/express-template/tsconfig.json b/apps/express-template/tsconfig.json index ceee17d..8eb702d 100644 --- a/apps/express-template/tsconfig.json +++ b/apps/express-template/tsconfig.json @@ -2,7 +2,10 @@ "extends": "@repo/typescript-config/base.json", "compilerOptions": { "lib": ["ES2015"], - "outDir": "./dist" + "outDir": "./dist", + "paths": { + "@repo/db/*": ["../../packages/db/src/*"] + } }, "exclude": ["node_modules"], "include": ["."]