From aab5d1aa36df90356e55168442be4f0d7d4d90c9 Mon Sep 17 00:00:00 2001 From: Alexander Wood Date: Tue, 29 Oct 2024 21:04:50 -0400 Subject: [PATCH] i think the sentry hack is no longer necessary --- src/sentry-hack.ts | 11 ----------- src/sentry.ts | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 src/sentry-hack.ts diff --git a/src/sentry-hack.ts b/src/sentry-hack.ts deleted file mode 100644 index 2e46cde..0000000 --- a/src/sentry-hack.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* eslint-disable */ -// noinspection JSUnusedGlobalSymbols,ES6ConvertVarToLetConst - -// This allows TypeScript to detect our global value -global.__rootdir__ = process.cwd() - -declare global { - var __rootdir__: string -} - -export {} diff --git a/src/sentry.ts b/src/sentry.ts index 1f263d5..4e0bc61 100644 --- a/src/sentry.ts +++ b/src/sentry.ts @@ -1,7 +1,7 @@ import * as Sentry from '@sentry/node' import {Client} from 'discord.js' import {logger} from './logging.js' -import './sentry-hack.js' + export function initSentry(client: Client) { process.on('unhandledRejection', (error) => {