- Proper modular structure: src/commands/ + src/lib/ - Autocomplete for /logs and /restart (live container names) - All metrics queries run in parallel (Promise.all) - Multi-stage Docker build (builder + production) - TypeScript type check as CI job before docker build Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
500 B
JSON
21 lines
500 B
JSON
{
|
|
"name": "discord-bot",
|
|
"version": "1.0.0",
|
|
"description": "Infrastructure management bot for csrx.ru",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"dev": "tsx watch src/index.ts"
|
|
},
|
|
"dependencies": {
|
|
"discord.js": "^14.16.3",
|
|
"dockerode": "^4.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/dockerode": "^3.3.32",
|
|
"@types/node": "^22.0.0",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.6.0"
|
|
}
|
|
}
|