Skip to content

Commit 16dfb12

Browse files
Various fixes for build and new runtime issue (#82)
1 parent fceff72 commit 16dfb12

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ FROM node:20 AS Build
22
ARG NPM_REGISTRY="https://registry.npmjs.org"
33
WORKDIR /usr/src/app
44
COPY . .
5-
RUN npm config set registry ${NPM_REGISTRY} && \
6-
npm install && \
7-
npm run build && \
8-
npm ci --omit=dev
5+
RUN npm config set registry ${NPM_REGISTRY}
6+
RUN npm install
7+
RUN npm run build
8+
RUN npm ci --omit=dev
99

1010
FROM node:20-alpine
1111

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"typescript": "^5.0.2"
2727
},
2828
"dependencies": {
29-
"@octokit/auth-app": "^7.0.0",
30-
"applicationinsights": "^3.0.1",
29+
"@octokit/auth-app": "6.1.1",
30+
"applicationinsights": "^3.2.1",
3131
"axios": "^1.4.0",
3232
"axios-retry": "^4.0.0",
3333
"dotenv": "^16.0.3",

src/logging.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
const appInsights = require("applicationinsights");
2-
3-
import { SeverityLevel } from "applicationinsights/out/Declarations/Contracts";
4-
import TelemetryClient from "applicationinsights/out/Library/TelemetryClient";
1+
import appInsights from "applicationinsights";
2+
import {KnownSeverityLevel, TelemetryClient} from "applicationinsights";
53

64

75
type LogEvent = {
@@ -38,7 +36,7 @@ class AiLogger implements ILogger {
3836
LogError(ex: string): void {
3937
this.client.trackTrace({
4038
message: ex,
41-
severity: SeverityLevel.Error
39+
severity: KnownSeverityLevel.Error
4240
});
4341
}
4442
}

0 commit comments

Comments
 (0)