fix(build): exclude scripts/ from tsconfig to fix Vercel build

The gen-style-thumbs.ts script uses Bun-only APIs (import.meta.dir,
Bun.write) which fail TypeScript checking under the project's Next.js
tsconfig. Exclude the scripts directory from compilation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
yuanzonghao
2026-06-06 21:57:33 +08:00
parent 9dfff39f88
commit 5fab22b9d5
+2 -1
View File
@@ -51,6 +51,7 @@
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
"node_modules",
"scripts"
]
}