diff --git a/frontend/local-client-cli/tsconfig.json b/frontend/local-client-cli/tsconfig.json index cfd2df7f..ce04f662 100644 --- a/frontend/local-client-cli/tsconfig.json +++ b/frontend/local-client-cli/tsconfig.json @@ -1,8 +1,11 @@ { "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "lib": ["ES2020"], + "target": "ESNext", + "module": "ESNext", + "lib": [ + "DOM", // to get `fetch` & `WebSocket` + "ES2024" + ], "outDir": "./dist", "rootDir": "./src", "strict": true, @@ -15,6 +18,5 @@ "declarationMap": true, "sourceMap": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist"] + "exclude": ["dist"] } diff --git a/frontend/sync-client/src/utils/set-up-telemetry.ts b/frontend/sync-client/src/utils/set-up-telemetry.ts index e4a4d881..6c8e4a4a 100644 --- a/frontend/sync-client/src/utils/set-up-telemetry.ts +++ b/frontend/sync-client/src/utils/set-up-telemetry.ts @@ -1,11 +1,19 @@ import * as Sentry from "@sentry/browser"; +// @ts-expect-error, injected by webpack +const packageVersion = __CURRENT_VERSION__; // eslint-disable-line + export const setUpTelemetry = (): (() => void) => { Sentry.init({ - dsn: "https://56accd39d92442e788a457a04623cf57@bugs.schmelczer.dev/1", - skipBrowserExtensionCheck: false + dsn: "https://a9bb2b9151bb450ca86b936436e356c4@bugs.schmelczer.dev/1", + release: `sync-client@${packageVersion}`, + sendDefaultPii: true, + integrations: [], + tracesSampleRate: 0 }); + Sentry.captureMessage("Initialised telemetry"); + const onError = (event: ErrorEvent): void => { Sentry.captureException(event.error, { extra: {