From c996e772c86dc6c4df8ce49912f06de311efd463 Mon Sep 17 00:00:00 2001 From: CPTProgrammer <46586216+CPTProgrammer@users.noreply.github.com> Date: Mon, 13 Jul 2026 10:00:20 +0800 Subject: [PATCH] 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. --- src/services/publish.ts | 2 +- tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/publish.ts b/src/services/publish.ts index aba0b74..e80348f 100644 --- a/src/services/publish.ts +++ b/src/services/publish.ts @@ -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 { diff --git a/tsconfig.json b/tsconfig.json index 27886c9..748bc93 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,9 +10,9 @@ "skipLibCheck": true, "strict": true, "ignoreDeprecations": "6.0", - "baseUrl": "src/", + "baseUrl": ".", "paths": { - "@/*": ["./*"] + "@/*": ["./src/*"] }, "noEmit": true, "incremental": true,