From ed5ff3db432348928542c553d65044d907467359 Mon Sep 17 00:00:00 2001 From: xCyanGrizzly Date: Tue, 3 Mar 2026 21:42:34 +0100 Subject: [PATCH] fix: exclude bot/ from Next.js build and lint tsconfig.json included **/*.ts but only excluded worker/**, not bot/**. This caused next build to type-check bot source files whose dependencies aren't installed in the root node_modules, breaking CI. - Add bot/** to tsconfig.json exclude array - Add bot/** and worker/** to eslint globalIgnores --- eslint.config.mjs | 3 +++ tsconfig.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index fb208bf..163eb5c 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -15,6 +15,9 @@ const eslintConfig = defineConfig([ // Non-app scripts and seed — not part of Next.js build "scripts/**", "prisma/seed.ts", + // Separate services with their own build + "worker/**", + "bot/**", ]), ]); diff --git a/tsconfig.json b/tsconfig.json index 9c0b009..5f5f129 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -31,5 +31,5 @@ ".next/dev/types/**/*.ts", "**/*.mts" ], - "exclude": ["node_modules", "prisma/seed.ts", "scripts/**", "worker/**"] + "exclude": ["node_modules", "prisma/seed.ts", "scripts/**", "worker/**", "bot/**"] }