Fix EventEmitter import and tsconfig paths

Update the EventEmitter import to use named import syntax.
Correct tsconfig baseUrl and paths mapping to properly resolve
`@/*` aliases from the project root.
This commit is contained in:
CPTProgrammer 2026-07-13 10:00:20 +08:00
parent 7aa84fd41e
commit c996e772c8
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import { initTRPC } from "@trpc/server";
import EventEmitter, { on } from "node:events";
import { EventEmitter, on } from "node:events";
import { getConfig } from "./config";
import { errorMessage } from "@/lib/utils/error";
import {

View File

@ -10,9 +10,9 @@
"skipLibCheck": true,
"strict": true,
"ignoreDeprecations": "6.0",
"baseUrl": "src/",
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
"@/*": ["./src/*"]
},
"noEmit": true,
"incremental": true,