From 2f45ca77f10e191a95c63f8a744e60a5788da495 Mon Sep 17 00:00:00 2001 From: Markus Date: Thu, 21 Nov 2024 16:31:38 +0200 Subject: [PATCH] fix(events): bind gateway to events package --- packages/events/tsconfig.json | 3 ++- packages/gateway/package.json | 2 ++ packages/gateway/tsconfig.json | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/events/tsconfig.json b/packages/events/tsconfig.json index 2c51ebffab2..d218fa514a5 100644 --- a/packages/events/tsconfig.json +++ b/packages/events/tsconfig.json @@ -18,7 +18,8 @@ "noImplicitAny": true, "strictNullChecks": true, "noUnusedLocals": true, - "types": ["fhir", "jest"] + "types": ["fhir", "jest"], + "composite": true }, "include": ["src/**/*.ts", "typings", "tslint-rules"], "exclude": ["node_modules", "build", "scripts", "acceptance-tests"] diff --git a/packages/gateway/package.json b/packages/gateway/package.json index ff8f0058092..b68bffc700a 100644 --- a/packages/gateway/package.json +++ b/packages/gateway/package.json @@ -28,6 +28,8 @@ "@hapi/h2o2": "^9.1.0", "@hapi/hapi": "^20.0.1", "@opencrvs/commons": "^1.3.0", + "@opencrvs/events": "^1.3.0", + "superjson": "1.9.0-0", "@trpc/client": "^11.0.0-rc.532", "@types/archiver": "^3.0.0", "@types/flat": "^0.0.28", diff --git a/packages/gateway/tsconfig.json b/packages/gateway/tsconfig.json index 7c94cd211e4..e8a326faac6 100644 --- a/packages/gateway/tsconfig.json +++ b/packages/gateway/tsconfig.json @@ -4,7 +4,7 @@ "baseUrl": "./src", "paths": { "@gateway/*": ["./*"], - "@events/*": ["../../events/src/*"] + "@events/*": ["../../events/src/index.ts"] }, "target": "es6", "module": "node16", @@ -23,6 +23,7 @@ "types": ["fhir", "jest"], "esModuleInterop": true }, + "references": [{ "path": "../events" }], "include": ["src/**/*.ts", "typings"], "exclude": ["node_modules", "build", "scripts", "acceptance-tests"] }