Merge pull request #3974 from nikhilsaxena04/fix/grpc-monitor-proto-path

fix(network): correctly resolve health.proto path for gRPC monitors and include in build
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-09-21 09:17:36 -07:00
commit 199d68e8a2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@
"worker": "QUEUE_MODE=worker node ./dist/index.js",
"worker:dev": "QUEUE_MODE=worker nodemon --exec tsx src/index.js",
"clean": "rm -rf dist",
"build": "npm run clean && npm run build:openapi && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && cp -r src/templates dist/templates",
"build": "npm run clean && npm run build:openapi && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && cp -r src/templates dist/templates && mkdir -p dist/service && cp -r src/service/protos dist/service/",
"typeCheck": "tsc --noEmit",
"build:openapi": "tsc --noEmit && tsx scripts/buildOpenApi.ts",
"lint": "eslint .",
+1 -1
View File
@@ -75,7 +75,7 @@ export class GrpcProvider implements IStatusProvider<GrpcStatusPayload> {
const target = `${host}:${port}`;
const currentFilePath = fileURLToPath(import.meta.url);
const protoPath = path.join(path.dirname(currentFilePath), "protos", "health.proto");
const protoPath = path.join(path.dirname(currentFilePath), "..", "protos", "health.proto");
const packageDefinition = this.protoLoader.loadSync(protoPath, {
keepCase: true,
longs: String,