From c2d4aaff935671397ef6585b202f03989a366ed6 Mon Sep 17 00:00:00 2001 From: Bence Csik <22349790+csikb@users.noreply.github.com> Date: Sat, 25 Oct 2025 09:03:29 +0100 Subject: [PATCH] fix: imports --- src/database/index.ts | 4 +--- src/middleware/index.ts | 10 ++++------ src/router/index.ts | 4 +--- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/database/index.ts b/src/database/index.ts index c29185a..9a8e8f1 100644 --- a/src/database/index.ts +++ b/src/database/index.ts @@ -1,3 +1 @@ -import postgres from './postgres.js' - -export { postgres } +export { default as postgres } from './postgres.js' diff --git a/src/middleware/index.ts b/src/middleware/index.ts index b4225a3..115cba0 100644 --- a/src/middleware/index.ts +++ b/src/middleware/index.ts @@ -1,6 +1,4 @@ -import bodyParser from './bodyparser.js' -import compress from './compress.js' -import helmet from './helmet.js' -import postGraphile from './postgraphile.js' - -export { bodyParser, compress, helmet, postGraphile } +export { default as bodyParser } from './bodyparser.js' +export { default as compress } from './compress.js' +export { default as helmet } from './helmet.js' +export { default as postGraphile } from './postgraphile.js' diff --git a/src/router/index.ts b/src/router/index.ts index 4830831..3aef2bc 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,3 +1 @@ -import healthRouter from './health.js' - -export { healthRouter } +export { default as healthRouter } from './health.js'