Skip to content

Commit 3f3ebec

Browse files
author
Vitor
committed
fix: ajuste de imports para compatibilidade com ESM
1 parent c41f2d8 commit 3f3ebec

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

websocket/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { registerSchema, sendMessageSchema } from './validations/schemas'
2-
import { validateData } from './validations/validation'
1+
import { registerSchema, sendMessageSchema } from './validations/schemas.js'
2+
import { validateData } from './validations/validation.js'
33
import { Server } from 'socket.io'
4-
import { db } from './db/pool'
4+
import { db } from './db/pool.js'
55
import dotenv from 'dotenv'
66

77
dotenv.config()

websocket/tsconfig.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022",
4-
"module": "ESNext",
5-
"moduleResolution": "node",
4+
"module": "NodeNext",
5+
"moduleResolution": "NodeNext",
66
"outDir": "./dist",
77
"rootDir": "./src",
88
"strict": true,
@@ -11,9 +11,5 @@
1111
"allowSyntheticDefaultImports": true
1212
},
1313
"include": ["src/**/*"],
14-
"exclude": [
15-
"src/__tests__/**/*",
16-
"**/*.test.ts",
17-
"**/*.spec.ts"
18-
]
14+
"exclude": ["src/__tests__/**/*", "**/*.test.ts", "**/*.spec.ts"]
1915
}

0 commit comments

Comments
 (0)