spiegel-keyman/developer/src/server/package.json
Marc Durdin 716cb526b7 fix(developer): Sentry in Server should honour reporting settings
Fixes #9939.

Uses refactored KeymanSentry.ts in developer-utils and updates the
loader in Server to run from that.

The changes to tray.ts and friends are required to deal with a top-level
await issue with the shutdown call.

The top-level await issue is described in detail at
https://marc.durdin.net/2023/11/dynamic-import-on-node-js-with-circular-dependencies-leads-to-interesting-failure-modes/

tl;dr: shutdown needed to do a proper Sentry shutdown. The shutdown code
was in index.ts. This led to a circular dependency and caused a silent
and abrupt exit code 13 in Node.js. Moved shutdown code into shutdown.ts
to resolve this.
2023-11-06 08:18:24 +07:00

48 lines
1.3 KiB
JSON

{
"name": "@keymanapp/developer-server",
"description": "Keyman Developer backend server",
"main": "build/src/index.js",
"type": "module",
"scripts": {
"build": "npx gosh ./build.sh build",
"test": "npx gosh ./build.sh test"
},
"license": "MIT",
"dependencies": {
"@sentry/node": "^6.16.1",
"chalk": "^4.1.2",
"express": "^4.17.2",
"multer": "^1.4.5-lts.1",
"ngrok": "^4.2.2",
"open": "^8.4.0",
"ws": "^8.3.0"
},
"optionalDependencies": {
"hetrodo-node-hide-console-window-napi": "keymanapp/hetrodo-node-hide-console-window-napi#keyman-15.0",
"node-windows-trayicon": "keymanapp/node-windows-trayicon#keyman-16.0"
},
"devDependencies": {
"@keymanapp/keyman-version": "*",
"@keymanapp/developer-utils": "*",
"@keymanapp/resources-gosh": "*",
"@types/chai": "^4.3.0",
"@types/express": "^4.17.13",
"@types/mocha": "^9.1.0",
"@types/multer": "^1.4.7",
"@types/node": "^20.4.1",
"@types/ws": "^8.2.2",
"chai": "^4.3.4",
"copyfiles": "^2.4.1",
"mocha": "^10.0.0",
"ts-node": "^10.9.1",
"tsc-watch": "^4.5.0",
"typescript": "^4.9.5"
},
"bundleDependencies": [
"@keymanapp/developer-utils"
],
"mocha": {
"require": "ts-node/register",
"spec": "build/**/*.test.js"
}
}