mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
PR #3333 added `yaml` to the root package.json, but the Railway seed-bundle-resilience-recovery service builds with rootDirectory pointing at scripts/ and NIXPACKS auto-detects scripts/package.json as the install manifest. Root package.json is never visited during the container build, so yaml stayed missing and the seeder crashed again at 07:39:26 UTC with the identical ERR_MODULE_NOT_FOUND. Adding yaml ^2.8.3 (matching the root promotion) to scripts/package.json so NIXPACKS' `npm install --prefix scripts` lands it in /app/node_modules/yaml. scripts/shared/swf-manifest-loader.mjs can then resolve the bare specifier. Keeping yaml in the root package.json too — it's harmless noise for local dev + validation bundle (which also imports it via tsx), and defensive for any future consumer that runs against the root deps. Future question worth a separate PR: do we want Railway services pointing at `scripts/` as rootDir, or should we move to a proper per-service Dockerfile that makes the dep source explicit? The current state is easy to miss because the Railway dashboard config is invisible from the repo — second seeder to trip this exact hazard.
31 lines
794 B
JSON
31 lines
794 B
JSON
{
|
|
"name": "worldmonitor-railway-relay",
|
|
"version": "1.1.1",
|
|
"description": "Railway relay: AIS/OpenSky + RSS proxy + Telegram OSINT poller",
|
|
"main": "ais-relay.cjs",
|
|
"scripts": {
|
|
"start": "node ais-relay.cjs",
|
|
"notification-relay": "node notification-relay.cjs",
|
|
"telegram:session": "node telegram/session-auth.mjs",
|
|
"seed-bundle-regional": "node seed-bundle-regional.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.82.0",
|
|
"@aws-sdk/client-s3": "^3.1009.0",
|
|
"convex": "^1",
|
|
"exceljs": "^4.4.0",
|
|
"h3-js": "^4.2.1",
|
|
"resend": "^4",
|
|
"sax": "^1.6.0",
|
|
"telegram": "^2.22.2",
|
|
"tsx": "^4.21.0",
|
|
"undici": "^7.0.0",
|
|
"web-push": "^3.6.7",
|
|
"ws": "^8.18.0",
|
|
"yaml": "^2.8.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|