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
This commit is contained in:
2026-03-03 21:42:34 +01:00
parent 575ffdbc31
commit ed5ff3db43
2 changed files with 4 additions and 1 deletions

View File

@@ -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/**",
]),
]);

View File

@@ -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/**"]
}