Skip to content

Commit

Permalink
fix(events): bind gateway to events package
Browse files Browse the repository at this point in the history
  • Loading branch information
makelicious committed Nov 21, 2024
1 parent 93e2e68 commit 85c4caa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "OpenCRVS Events service",
"license": "MPL-2.0",
"private": true,
"main": "dist/src/index.js",
"scripts": {
"start": "cross-env NODE_ENV=development NODE_OPTIONS=--dns-result-order=ipv4first nodemon --exec ts-node -r tsconfig-paths/register src/index.ts",
"start:prod": "TS_NODE_BASEURL=./build/dist/src node -r tsconfig-paths/register build/dist/src/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/events/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 3 additions & 1 deletion packages/gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@hapi/h2o2": "^9.1.0",
"@hapi/hapi": "^20.0.1",
"@opencrvs/commons": "^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",
Expand Down Expand Up @@ -153,7 +154,8 @@
"<rootDir>"
],
"moduleNameMapper": {
"@gateway/(.*)": "<rootDir>/src/$1"
"@gateway/(.*)": "<rootDir>/src/$1",
"@opencrvs/events": "@opencrvs/events/build/dist/src/index.js"
},
"coverageReporters": [
"json",
Expand Down
3 changes: 2 additions & 1 deletion packages/gateway/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"baseUrl": "./src",
"paths": {
"@gateway/*": ["./*"],
"@events/*": ["../../events/src/*"]
"@events/*": ["../../events/src/index.ts"]
},
"target": "es6",
"module": "node16",
Expand All @@ -23,6 +23,7 @@
"types": ["fhir", "jest"],
"esModuleInterop": true
},
"references": [{ "path": "../events" }],
"include": ["src/**/*.ts", "typings"],
"exclude": ["node_modules", "build", "scripts", "acceptance-tests"]
}

0 comments on commit 85c4caa

Please sign in to comment.