diff --git a/server/package.json b/server/package.json index 36906c936..b35ea1eae 100755 --- a/server/package.json +++ b/server/package.json @@ -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 .", diff --git a/server/src/service/network/GrpcProvider.ts b/server/src/service/network/GrpcProvider.ts index b651344cb..9eee2041b 100644 --- a/server/src/service/network/GrpcProvider.ts +++ b/server/src/service/network/GrpcProvider.ts @@ -75,7 +75,7 @@ export class GrpcProvider implements IStatusProvider { 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,