mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-10 22:01:16 +00:00
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:
@@ -15,6 +15,9 @@ const eslintConfig = defineConfig([
|
|||||||
// Non-app scripts and seed — not part of Next.js build
|
// Non-app scripts and seed — not part of Next.js build
|
||||||
"scripts/**",
|
"scripts/**",
|
||||||
"prisma/seed.ts",
|
"prisma/seed.ts",
|
||||||
|
// Separate services with their own build
|
||||||
|
"worker/**",
|
||||||
|
"bot/**",
|
||||||
]),
|
]),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -31,5 +31,5 @@
|
|||||||
".next/dev/types/**/*.ts",
|
".next/dev/types/**/*.ts",
|
||||||
"**/*.mts"
|
"**/*.mts"
|
||||||
],
|
],
|
||||||
"exclude": ["node_modules", "prisma/seed.ts", "scripts/**", "worker/**"]
|
"exclude": ["node_modules", "prisma/seed.ts", "scripts/**", "worker/**", "bot/**"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user