- Create new @link-stack/logger package wrapping Pino for structured logging - Replace all console.log/error/warn statements across the monorepo - Configure environment-aware logging (pretty-print in dev, JSON in prod) - Add automatic redaction of sensitive fields (passwords, tokens, etc.) - Remove dead commented-out logger file from bridge-worker - Follow Pino's standard argument order (context object first, message second) - Support log levels via LOG_LEVEL environment variable - Export TypeScript types for better IDE support This provides consistent, structured logging across all applications and packages, making debugging easier and production logs more parseable.
30 lines
846 B
JSON
30 lines
846 B
JSON
{
|
|
"name": "@link-stack/bridge-worker",
|
|
"version": "3.1.0",
|
|
"type": "module",
|
|
"main": "build/main/index.js",
|
|
"author": "Darren Clarke <darren@redaranj.com>",
|
|
"license": "AGPL-3.0-or-later",
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json && cp crontab build/main/crontab",
|
|
"dev": "dotenv -- graphile-worker",
|
|
"start": "node build/main/index.js"
|
|
},
|
|
"dependencies": {
|
|
"@hapi/wreck": "^18.1.0",
|
|
"@link-stack/bridge-common": "*",
|
|
"@link-stack/logger": "*",
|
|
"@link-stack/signal-api": "*",
|
|
"fluent-ffmpeg": "^2.1.3",
|
|
"graphile-worker": "^0.16.6",
|
|
"remeda": "^2.21.2",
|
|
"twilio": "^5.5.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/fluent-ffmpeg": "^2.1.27",
|
|
"dotenv-cli": "^8.0.0",
|
|
"@link-stack/eslint-config": "*",
|
|
"@link-stack/typescript-config": "*",
|
|
"typescript": "^5.8.2"
|
|
}
|
|
}
|