Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .changeset/tidy-tigers-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
"create-t3-app": patch
---

Fix Biome + Prisma scaffolding failure and bump minimum Biome version

- Bump `@biomejs/biome` minimum from `^2.2.5` to `^2.5.3`. The template's
`biome.jsonc` uses CSS parser options (`cssModules`, `tailwindDirectives`)
and `assist` actions (`useSortedAttributes`) introduced in Biome 2.3+.
Resolving to 2.2.5 (offline caches, locked registries) caused a config
parse error that aborted scaffolding.
- Add explicit `files.includes` with `!**/generated` to `biome.jsonc`.
Previously, excluding `generated/` relied solely on `.gitignore` via VCS
integration. When users opted out of git init, Biome could not resolve
the ignore file and linted Prisma's generated client, causing
`check:unsafe` to fail with 290+ diagnostics on machine-generated code.

Fixes #2226
2 changes: 1 addition & 1 deletion cli/src/installers/dependencyVersionMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const dependencyVersionMap = {
"server-only": "^0.0.1",

// biome
"@biomejs/biome": "^2.2.5",
"@biomejs/biome": "^2.5.3",

// eslint / prettier
prettier: "^3.5.3",
Expand Down
3 changes: 3 additions & 0 deletions cli/template/extras/config/biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
},
},
},
"files": {
"includes": ["**", "!**/generated"]
},
"formatter": {
"enabled": true,
},
Expand Down
Loading