File tree Expand file tree Collapse file tree
packages/shadcn/src/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " shadcn " : minor
3+ ---
4+
5+ add support for vinxi based framework
Original file line number Diff line number Diff line change @@ -146,6 +146,20 @@ export async function getProjectInfo(cwd: string): Promise<ProjectInfo | null> {
146146 return type
147147 }
148148
149+ // Vinxi-based (such as @tanstack/start and @solidjs/solid-start)
150+ // They are vite-based, and the same configurations used for Vite should work flawlessly
151+ const appConfig = configFiles . find ( ( file ) => file . startsWith ( "app.config" ) )
152+ if ( appConfig ?. length ) {
153+ const appConfigContents = await fs . readFile (
154+ path . resolve ( cwd , appConfig ) ,
155+ "utf8"
156+ )
157+ if ( appConfigContents . includes ( "defineConfig" ) ) {
158+ type . framework = FRAMEWORKS [ "vite" ]
159+ return type
160+ }
161+ }
162+
149163 // Expo.
150164 if ( packageJson ?. dependencies ?. expo ) {
151165 type . framework = FRAMEWORKS [ "expo" ]
You can’t perform that action at this time.
0 commit comments