Skip to content

Commit

Permalink
fix sentry instrumentation maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Oct 25, 2024
1 parent 4cdc4df commit 6638eb5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
File renamed without changes.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
20 changes: 20 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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

0 comments on commit 6638eb5

Please sign in to comment.