From cfe53633dac4f702b0c5792b8514e314cef42872 Mon Sep 17 00:00:00 2001 From: Gift Amadi <120387225+giftexceed@users.noreply.github.com> Date: Mon, 22 Jun 2026 16:30:07 +0000 Subject: [PATCH] ci(listener): add lint and typecheck scripts The CI workflow runs `npm run lint` and `npm run typecheck` in the listener, but neither script existed in package.json, so the Listener job failed immediately with `Missing script: "lint"` before tests ran. Add both scripts running the TypeScript compiler in no-emit mode as the static-analysis gate. (eslint is not currently wired up for the listener and its peer deps conflict with the package's TypeScript 6.x toolchain; a fuller eslint setup can be layered on later without changing CI.) This unblocks the Listener CI job. Combined with the two test fixes (preferences endpoint and rate-limit metrics), the job runs green. --- listener/package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/listener/package.json b/listener/package.json index 26360a9..60d64e3 100644 --- a/listener/package.json +++ b/listener/package.json @@ -6,6 +6,8 @@ "dev": "ts-node src/index.ts", "build": "node ./node_modules/typescript/bin/tsc", "start": "node dist/index.js", + "typecheck": "node ./node_modules/typescript/bin/tsc --noEmit", + "lint": "node ./node_modules/typescript/bin/tsc --noEmit", "test": "node ./node_modules/jest/bin/jest.js", "migrate": "ts-node src/scripts/migrate-db.ts", "validate:batch": "ts-node src/utils/batch-validator.ts"