Skip to content

Commit fb81703

Browse files
authored
fix: imports (#282)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Internal code organization improved for better maintainability. No changes to user-facing functionality or behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 4180128 commit fb81703

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

src/database/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
import postgres from './postgres.js'
2-
3-
export { postgres }
1+
export { default as postgres } from './postgres.js'

src/middleware/index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import bodyParser from './bodyparser.js'
2-
import compress from './compress.js'
3-
import helmet from './helmet.js'
4-
import postGraphile from './postgraphile.js'
5-
6-
export { bodyParser, compress, helmet, postGraphile }
1+
export { default as bodyParser } from './bodyparser.js'
2+
export { default as compress } from './compress.js'
3+
export { default as helmet } from './helmet.js'
4+
export { default as postGraphile } from './postgraphile.js'

src/router/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
import healthRouter from './health.js'
2-
3-
export { healthRouter }
1+
export { default as healthRouter } from './health.js'

0 commit comments

Comments
 (0)