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'