- Bundle the server into dist/rotrouter.cjs with esbuild (npm run build), so the package needs only nodejs at runtime and is arch=any. - Read the config and static file paths from ROTROUTER_CONFIG and ROTROUTER_PUBLIC (defaults unchanged for npm start). - PKGBUILD for rotrouter-git and a hardened systemd unit running as a DynamicUser without capabilities. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
749 B
JSON
27 lines
749 B
JSON
{
|
|
"name": "rotrouter",
|
|
"version": "1.0.0",
|
|
"description": "Route rotator requests to the proper rotator controller",
|
|
"license": "ISC",
|
|
"author": "ericek111",
|
|
"type": "module",
|
|
"main": "src/index.ts",
|
|
"scripts": {
|
|
"start": "tsx src/index.ts",
|
|
"build": "esbuild src/index.ts --bundle --platform=node --target=node22 --format=cjs --outfile=dist/rotrouter.cjs --external:bufferutil --external:utf-8-validate",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@hono/node-server": "^1.19.11",
|
|
"@hono/node-ws": "^1.3.0",
|
|
"fast-xml-parser": "^5.3.5",
|
|
"hono": "^4.12.8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.5.0",
|
|
"esbuild": "^0.27.7",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|