From 5ae1e098fdf4206fc7bd5fa2c8f5a66f587e2b5c Mon Sep 17 00:00:00 2001 From: Lilith Date: Sun, 4 Jan 2026 22:28:23 -0800 Subject: [PATCH] =?UTF-8?q?fix(@packages/@infrastructure/domain-events):?= =?UTF-8?q?=20=F0=9F=90=9B=20resolve=20type=20and=20module=20resolution=20?= =?UTF-8?q?issues=20in=20package.json=20and=20tsconfig.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- @packages/@infrastructure/domain-events/package.json | 9 ++++----- @packages/@infrastructure/domain-events/tsconfig.json | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/@packages/@infrastructure/domain-events/package.json b/@packages/@infrastructure/domain-events/package.json index 32cd2d8a3..ff42f87d1 100644 --- a/@packages/@infrastructure/domain-events/package.json +++ b/@packages/@infrastructure/domain-events/package.json @@ -2,28 +2,27 @@ "name": "@lilith/domain-events", "version": "1.0.0", "description": "Domain event types and emitter for cross-feature event-driven communication", - "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", - "import": "./dist/index.js", + "require": "./dist/index.js", "default": "./dist/index.js" }, "./types": { "types": "./dist/types/index.d.ts", - "import": "./dist/types/index.js", + "require": "./dist/types/index.js", "default": "./dist/types/index.js" }, "./emitter": { "types": "./dist/emitter/index.d.ts", - "import": "./dist/emitter/index.js", + "require": "./dist/emitter/index.js", "default": "./dist/emitter/index.js" }, "./nestjs": { "types": "./dist/domain-events.module.d.ts", - "import": "./dist/domain-events.module.js", + "require": "./dist/domain-events.module.js", "default": "./dist/domain-events.module.js" } }, diff --git a/@packages/@infrastructure/domain-events/tsconfig.json b/@packages/@infrastructure/domain-events/tsconfig.json index 1a0cca203..2821d925d 100644 --- a/@packages/@infrastructure/domain-events/tsconfig.json +++ b/@packages/@infrastructure/domain-events/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "target": "ES2022", - "module": "NodeNext", - "moduleResolution": "NodeNext", + "module": "CommonJS", + "moduleResolution": "node", "lib": ["ES2022"], "declaration": true, "declarationMap": true,