mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-28 23:24:13 +00:00
fix TanStack Start detection (#7601)
* fix tanstack start detection * chore: changeset --------- Co-authored-by: shadcn <m@shadcn.com>
This commit is contained in:
5
.changeset/rude-dodos-hunt.md
Normal file
5
.changeset/rude-dodos-hunt.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"shadcn": patch
|
||||
---
|
||||
|
||||
fix tanstack start detection
|
||||
@@ -121,11 +121,10 @@ export async function getProjectInfo(cwd: string): Promise<ProjectInfo | null> {
|
||||
|
||||
// TanStack Start.
|
||||
if (
|
||||
configFiles.find((file) => file.startsWith("app.config."))?.length &&
|
||||
[
|
||||
...Object.keys(packageJson?.dependencies ?? {}),
|
||||
...Object.keys(packageJson?.devDependencies ?? {}),
|
||||
].find((dep) => dep.startsWith("@tanstack/start"))
|
||||
].find((dep) => dep.startsWith("@tanstack/react-start"))
|
||||
) {
|
||||
type.framework = FRAMEWORKS["tanstack-start"]
|
||||
return type
|
||||
|
||||
Reference in New Issue
Block a user