diff --git a/src/instrument.mjs b/instrument.mjs similarity index 100% rename from src/instrument.mjs rename to instrument.mjs diff --git a/package.json b/package.json index 1ff26bc..1d8d0ed 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build": "tsc --build --clean tsconfig.json && tsc --build tsconfig.json", "build-prod": "tsc -p tsconfig.production.json && ([ -f bin/Config.prod.js ] && mv -f bin/Config.prod.js bin/Config.js) || true", "watch-dev": "nodemon --exec node --experimental-specifier-resolution=node --loader ts-node/esm src/index.ts", - "start-built": "node --import bin/instrument.mjs --trace-warnings bin/index.js", + "start-built": "node --import ./bin/instrument.mjs --trace-warnings bin/index.js", "build-and-run": "yarn build && yarn start-built", "build-and-run-prod": "yarn lint && yarn build-prod && yarn start-built", "sentry:sourcemaps": "sentry-cli sourcemaps inject --org developer-den-59 --project discord-bot ./bin && sentry-cli sourcemaps upload --org developer-den-59 --project discord-bot ./bin" @@ -49,7 +49,8 @@ "tslib": "^2.8.0", "utf-8-validate": "^6.0.4", "winston": "^3.15.0", - "yaml": "^2.6.0" + "yaml": "^2.6.0", + "zlib-sync": "^0.1.9" }, "repository": "https://github.com/TheDeveloperDen/DevDenBot.git", "devDependencies": { diff --git a/src/index.ts b/src/index.ts index cb691aa..e840716 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,5 @@ import {config} from './Config.js' import * as dotenv from 'dotenv' -import "./instrument"; import {Client, GatewayIntentBits, Partials} from 'discord.js' import {setupBranding} from './util/branding.js' import './util/random.js' diff --git a/yarn.lock b/yarn.lock index 9c32461..ae529b2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2355,6 +2355,7 @@ __metadata: utf-8-validate: "npm:^6.0.4" winston: "npm:^3.15.0" yaml: "npm:^2.6.0" + zlib-sync: "npm:^0.1.9" languageName: unknown linkType: soft @@ -4405,6 +4406,15 @@ __metadata: languageName: node linkType: hard +"nan@npm:^2.18.0": + version: 2.22.0 + resolution: "nan@npm:2.22.0" + dependencies: + node-gyp: "npm:latest" + checksum: 10c0/d5d31aefdb218deba308d44867c5f432b4d3aabeb57c70a2b236d62652e9fee7044e5d5afd380d9fef022fe7ebb2f2d6c85ca3cbcac5031aaca3592c844526bb + languageName: node + linkType: hard + "napi-build-utils@npm:^1.0.1": version: 1.0.2 resolution: "napi-build-utils@npm:1.0.2" @@ -6635,3 +6645,13 @@ __metadata: checksum: 10c0/856117aa15cf5103d2a2fb173f0ab4acb12b4b4d0ed3ab249fdbbf612e55d1cadfd27a6110940e24746fb0a78cf640b522cc8bca76f30a3b00b66e90cf82abe0 languageName: node linkType: hard + +"zlib-sync@npm:^0.1.9": + version: 0.1.9 + resolution: "zlib-sync@npm:0.1.9" + dependencies: + nan: "npm:^2.18.0" + node-gyp: "npm:latest" + checksum: 10c0/1c05fdc5140f4c9afb931bfca01fc9f26ddfe242eb5c8c06ffc93b53d5103f0a99e8b8048697446001eb4a92c12febd270bcb4cda3fa3de9bf822e6ba0664902 + languageName: node + linkType: hard