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,