be7e1585b0
Прод-образ mono-base делает `pnpm prune --prod` (Dockerfile:74) — devDeps вырезаются. ts-node был в devDependencies → в проде `sh: ts-node: not found`, контейнер в restart-loop, /health не отвечал. controller держит ts-node в dependencies — повторяем паттерн. (Коммит из закрытого PR #115 не попал в dev, вношу прямо.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
28 lines
950 B
JSON
28 lines
950 B
JSON
{
|
|
"name": "@coopenomics/email-relay",
|
|
"version": "1.0.0",
|
|
"description": "HTTP→SMTP релей: принимает письма по HTTPS (Bearer-токен) и отправляет их по SMTP. Нужен там, где у кооператива закрыт исходящий SMTP — релей ставится на сервер с открытыми портами.",
|
|
"type": "commonjs",
|
|
"private": true,
|
|
"main": "src/index.ts",
|
|
"scripts": {
|
|
"start": "ts-node src/index.ts",
|
|
"dev": "nodemon --watch src --ext ts,env --exec 'ts-node' src/index.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint src",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"express": "^4.22.1",
|
|
"nodemailer": "^8.0.1",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^4.17.21",
|
|
"@types/node": "^20.0.0",
|
|
"@types/nodemailer": "^6.4.14",
|
|
"nodemon": "^3.1.0"
|
|
}
|
|
}
|